Jump to content

Auto Numbering in SSM


Diesel

Recommended Posts

Autocad LT 2014

 

Is there a way to auto number the Sheet No in SSM

 

For example: at work we have 45 sheets in 4 different dwgs. Is there a way to have the "x" in "Sheet X of 45" update automatically on each sheet?

 

Thanks

Link to comment
Share on other sites

Yeah, it's possible and there are two ways to do it. One is with a macro and another is with blocks (at least I'm 85% sure you can do it with blocks). Which would you prefer?

Link to comment
Share on other sites

^C^CUSERI1;$M=$(+,$(getvar,USERI1),1);-attedit;y;;number;;\;v;r;$M=$(getvar,USERI1) of 45;;^c

This should do what you need. Also, It will only work in 1 drawing. IE: if you use it in drawing A it will go "1" then "2" and so on. Go to drawing B and it will start at 1. This is because USERI1 isn't a system variable. That should be the only disadvantage. To fix that you can set USERI1 to the number you want manually before you use this macro.

Link to comment
Share on other sites

Is there a way to have the "x" in "Sheet X of 45" update automatically on each sheet?

 

Thanks

 

 

The sheet number is a built in field in SSM. Just add a field using this reference.

 

ssm6.png

Link to comment
Share on other sites

^C^CUSERI1;$M=$(+,$(getvar,USERI1),1);-attedit;y;;number;;\;v;r;$M=$(getvar,USERI1) of 45;;^c

This should do what you need. Also, It will only work in 1 drawing. IE: if you use it in drawing A it will go "1" then "2" and so on. Go to drawing B and it will start at 1. This is because USERI1 isn't a system variable. That should be the only disadvantage. To fix that you can set USERI1 to the number you want manually before you use this macro.

 

Itried to add this in the CUI and I couldn't get this to work. Any help would be appricated

 

Thanks

Link to comment
Share on other sites

of 45
may not work try "of 45" the spaces means its a command input so screws macro ??

 

I have taken a different approach using lisp and read the layout names which have sheet number as part of their label, could add a 2nd pass that would look into multiple drawings to work out x of maxnumber and updating. .Net would allow snooping without opening closing dwg. Not much good for LT.

Link to comment
Share on other sites

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...