DesignCAD User Forum

DesignCAD SDK => BasicCAD => Topic started by: bdeck on October 08, 2015, 02:36:00 AM

Title: parameters to dimension command
Post by: bdeck on October 08, 2015, 02:36:00 AM

What is the parameter within the Dimension command itself that sets D_ENABLEFIXEDTEXTPOS?

Also, what is the parameter within the Dimension command that sets D_TEXTMOVEMENT.

Thanks.

BD
Title: Re: parameters to dimension command
Post by: DrollTroll on October 08, 2015, 07:35:08 AM
D_TEXTMOVEMENT is set by this parameter:
<TextMovement [n]  where n can be one of: 0 = dim line with text, 1 = add leader, 2 = no leader

Looking at the source code, it appears that:
 D_ENABLEFIXEDTEXTPOS is set indirectly by the Text Movement setting -- if Text Movement is set to "Dim line with text", D_ENABLEFIXEDTEXTPOS is set to 1; otherwise it's set to zero.
If on the other hand you change D_ENABLEFIXEDTEXTPOS in code, setting it to 1 will change the dimension format to "No Leader"; not sure right this second whether it will affect the D_TEXTMOVEMENT setting right away or if you'll have to re-ENTITY the dimension to see the change.

I'd guess that D_ENABLEFIXEDTEXTPOS is an artifact of the dimension changes begun with version 18, and is probably obsolete at this point.
Title: Re: parameters to dimension command
Post by: bdeck on October 08, 2015, 12:51:01 PM
DT,
Very helpful info. Thanks,
BD