Hi,
It had slipped my mind that Mark added a SmartEntity2RegularEntities procedure in v22 (I think it was v22.01.01). I have previously looked at using this to get smart wall information (was interested in using it to cast shadows of smart entities, but although it returned polygons etc representing the walls, I ran into a wall trying to get the voids ... I should look at it again).
I have just used it in my TextReplace macro to find text in ParaText and MText entities and it seems to be pretty reliable for that (of course it just gives details of the entities, unfortunately you cannot use the information to then update the text).
I thought others may be interested in this. The updated source code of the macro is in my Bit Bucket repository (the code relating to ParaText/MText is in the ReplaceForm.pas file).
I am in the process of updating my version of the DCAL manual with some of the new procedures that have been added, and will make that available once complete.
Regards,
David H.
It had slipped my mind that Mark added a SmartEntity2RegularEntities procedure in v22 (I think it was v22.01.01). I have previously looked at using this to get smart wall information (was interested in using it to cast shadows of smart entities, but although it returned polygons etc representing the walls, I ran into a wall trying to get the voids ... I should look at it again).
I have just used it in my TextReplace macro to find text in ParaText and MText entities and it seems to be pretty reliable for that (of course it just gives details of the entities, unfortunately you cannot use the information to then update the text).
I thought others may be interested in this. The updated source code of the macro is in my Bit Bucket repository (the code relating to ParaText/MText is in the ReplaceForm.pas file).
I am in the process of updating my version of the DCAL manual with some of the new procedures that have been added, and will make that available once complete.
Regards,
David H.
David Henderson
dhSoftware - Add-on Macros for DataCAD
dhSoftware - Add-on Macros for DataCAD