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

#71382 by dhs
Mon May 01, 2017 9:16 pm
Hatches created with hatch_mode in DCAL have snapping points associated with every single hatch line. This is not desirable and is a problem because for example the user may try to snap to a corner of the hatched area and without realising it actually snap to the end of a hatch line that is near the desired corner.

I think this is a bug in the hatch_mode procedure (although note that I am testing in DataCAD 11 ... it is possible it has been fixed in a more recent version?).

This appears to happen because hatch_mode creates the hatch lines with ent.attr field set to 5 (which is the value used for normal 2d lines when they are created manually).

You can overcome this problem by updating the hatch lines and setting the attr field of each entitiy to 1 (which is the value used for non-associative hatch lines when a hatch is created manually).

Who is online

Users browsing this forum: No registered users and 1 guest

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