Jump to content
Sign in to follow this  
marc wittwer

dimension

Recommended Posts

hi nna,

could you tell me, why the following script don't show me the text size of the dimension. where is my "error". or is it a bug in the call? thanks for your answer!

the script:

Procedure VariableLesen;

?

CONST

?Selector = 17;

?

VAR

?OldFSize:Integer;

?FirstSelHd : Handle;

?

BEGIN

?

FirstSelHd := FSActLayer;

OldFSize := GetObjectVariableInt(FirstSelHd, Selector);

Message (OldFSize);

?

END;

?

RUN(VariableLesen);

Share this post


Link to post
Guest

There is a problem with GetObjectVariableInt(17) which will be addressed in a future version of VectorWorks.

Sorry for the inconvenience.

Share this post


Link to post

hi jeff,

thanks for your answer. if the script is written with "GetObjectVariableReal" then the result ist "correct". the result must be multiply with 0.0567 to have the textdimension in points. do you know why it must multiply with this digit?

another question: could it be possible, that "SetObjectVariableReal" is shown in a messeagedialog on the screen?

thanks for this great tech board!

greetings, marc

here's the script:

Procedure VariableLesen;

?

CONST

?Selector = 17;

?

VAR

?OldFSize:Real;

?FirstSelHd : Handle;

?

BEGIN

?

FirstSelHd := FSActLayer;

OldFSize := GetObjectVariableReal(FirstSelHd, Selector);

Message (OldFSize);

?

END;

?

RUN(VariableLesen);

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...