TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jtm2020hyo on May 22, 2024, 08:42:13 AM

Title: How to view and edit PropertySetData from AutoCAD MEP and CIVIL3D, in Bricscad.
Post by: jtm2020hyo on May 22, 2024, 08:42:13 AM
Trying to learn and migrate to BricsCAD, but have not many documentation.
Title: Re: How to view and edit Property Set Data from AutoCAD MEP and CIVIL, in Bricscad.
Post by: BIGAL on May 22, 2024, 09:55:49 PM
If I remember correctly, the property set can be found but using a particular CIV3D DLL not sure if Bricscad has the same function. I would join the Bricscad forum they are very helpful and actual Bricscad staff respond at times or put in a support request, again they do answer back.
Title: Re: How to view and edit Property Set Data from AutoCAD MEP and CIVIL, in Bricscad.
Post by: It's Alive! on May 22, 2024, 10:12:38 PM
When I was wrapping BrxCvCivil3d for python, I noticed a converter class, I haven't tried it yet

Code - C++: [Select]
  1. void makePyBrxCvCivil3dConverterWrapper()
  2. {
  3.     PyDocString DS("CvCivil3dConverter");
  4.     class_<PyBrxCvCivil3dConverter>("CvCivil3dConverter")
  5.         .def(init<>())
  6.         .def(init<const PyDbDatabase&, PyDbDatabase&, BrxCvCivil3dConverter::Civil3dLabels>(DS.CTOR(ctor)))
  7.         .def("getCivilEntities", &PyBrxCvCivil3dConverter::getCivilEntities, DS.ARGS())
  8.         .def("convert", &PyBrxCvCivil3dConverter::convert, DS.ARGS({ "entitiesToConvert : list" }))
  9.         .def("attachedLabels", &PyBrxCvCivil3dConverter::attachedLabels, DS.ARGS({ "civilEntity: PyBrxCv.CvCivil3dEntityInfo" }))
  10.         .def("unattachedLabels", &PyBrxCvCivil3dConverter::unattachedLabels, DS.ARGS())
  11.         .def("getInsertedEntities", &PyBrxCvCivil3dConverter::getInsertedEntities, DS.ARGS())
  12.         .def("className", &PyBrxCvCivil3dConverter::className, DS.SARGS()).staticmethod("className")
  13.         ;
  14. }
  15.  
It’s probably available in BRX, .NET too. Not sure about lisp, i'm sure there's a command