Jump to content

Recommended Posts

Posted

Hi!

Sys. variable "CANNOSCALEVALUE" gives the current annotation value. For ex: 1:100, 1:20 aso. it's e real nr like 0.01 and 0.05. But how can i find the nr 100 or 20 out of this variable so i could use this nr to multiply it in my routine.

For example i have some object that i need to scale 100 time or 20.

Thanks!

M

Posted

The said system variable (CANNOSCALEVALUE) is a real number, so can be used directly in calculations.

 

If I misread you post, and you are looking in fact to display the current value, then try the code below (for metric environment):

(strcat "1:" (itoa (fix (/ 1 (getvar "CANNOSCALEVALUE")))))

Posted

Silly me

This (/1 (getvar "cannoscalevalue")) will solve the problem.

Silly me

Posted

Ok, it seems that i have to find a bit different way. Many users have replied that already:)

I'll try a bit different then.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...