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.

Moderator: pjdixit

#76822 by Mark Bell
Tue Jul 30, 2019 6:44 pm
Hi David,

The macro is coming together well. Some items to note:

The text size created for labels is very small and doesn't match the existing text size settings used in the Text menu. Screenshot below:
If the printer scale is changed to adjust the relative text size and further spaces and labels generated the label text size remains micro size. The screen shot shows standard text indicator at size 3.5 (light mgta) and the text label in the centre (white) which when Identified gives text size=0.

073119a.jpg


When generating an open side shape using contour, the macro didn't crash.

I'm unsure whether this is feasible with a macro; currently, opening the macro will force labels to update so if a space has changed the area will automatically update. Consider adding an icon that can be floating or docked into the menu's that when selected, updates the labels so areas are made current to reflect changes. The ideal situation is to have dynamic readouts so the areas update as the space is changed, but I assume this is beyond the capabilities of the macro.

If I use Move text, and move a label so it sits outside the space, then Update labels, the text updates but remains located outside the space. Is it worth adding a feature where a user can tick so labels reposition back inside the spaces?
#76823 by dhs
Tue Jul 30, 2019 7:33 pm
Mark wrote: I'm unsure whether this is feasible with a macro; currently, opening the macro will force labels to update so if a space has changed the area will automatically update. Consider adding an icon that can be floating or docked into the menu's that when selected, updates the labels so areas are made current to reflect changes.
I think what you are asking is pretty much there already (without a floating icon). You can disable the automatic update of labels in the 'Processing Options' tab of the settings form. If that is disabled then opening the macro will not force the labels to update.Image
You can then force the labels to refresh by going to the Refresh/Update menu (F0 from the main menu) and selecting [F1 Refresh All]
Is it worth adding a feature where a user can tick so labels reposition back inside the spaces?
You can currently move labels back to the center of the space 1 by 1 using the [F1 To Centroid] option when moving a label using the macro's [F5 Mov/Rot Label] function (located on the 'Edit Spaces' menu. I'll give some thought to an easier way to move multiple labels back to the center.

text size created for labels is very small and doesn't match the existing text size settings
. I haven't experience this. I have one thought on what could be causing it, but are you able to email me a file that displays this behaviour so that I can check it out. When you first use the macro it is meant to default to the current text size setting, but that is then saved and will be used in future uses unless you change it. Are you able to change the text size using the Labels tab on the settings form ?

Thanks,
David H.

Who is online

Users browsing this forum: No registered users and 0 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 AEC Professionals Since 1984