marc wittwer 0 Posted December 18, 2002 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); Quote Share this post Link to post
Guest Posted December 19, 2002 There is a problem with GetObjectVariableInt(17) which will be addressed in a future version of VectorWorks. Sorry for the inconvenience. Quote Share this post Link to post
marc wittwer 0 Posted December 27, 2002 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); Quote Share this post Link to post