The DataCAD Developer Network (DDN) is an online resource for information and support for DCAL® (DataCAD Applications Language) developers as well as anyone interested in creating fonts, toolbars, hatch patterns, or linetypes for use in DataCAD.
#83113 by dhs
Thu Jul 25, 2024 4:45 pm
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.
#83259 by dhs
Wed Oct 30, 2024 2:36 pm
Mark quietly added a couple of new D4D procedures in the latest version of DataCAD. Not sure how many are aware of them, but the most significant (imho) is the menuGetMode procedure (an equivalent to Classic DCAL's GetMode). Macros using this new procedure will not run in previous versions of DataCAD, but going forward it could be quite useful to any other macro writers out there...

I have added a reference to this in my version of DCAL manual available at http://dhsoftware.com.au/DCAL.pdf (this is a copy of the original DCAL manual to which I have added quite a few notes).

I have also used this new procedure in a new TextMan macro. This new macro allows you to search for text in drawings and can manipulate text in various ways such as replacing matching text, changing the case of text in matching entities, or incrementing numbers in matching text entities. it is not yet listed on my web site, but can be downloaded from https://dhsoftware.com.au/downloads/TextMan_1.0.0.1.zip. The new getmode procedure appears to work quite reliably in all my testing so far ....

Who is online

Users browsing this forum: No registered users and 2 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.

DataCAD

Software for Architects Since 1984