Jump to content

Recommended Posts

Posted

Is there any way with Autolisp to allow the user to set the insert scale of a block? So that all the blocks inserted have the same value until another size is desired.

 

What I do now is insert a block with insert command. Check- Specify On-screen & Uniform scale in the Scale group box. Then type something like 96.

 

Or use a toolbar object to insert, then scale as needed.

 

Usually I draw in full scale then adjust the View port accordingly. But occasionally I need to have 2 diff scaled objects in the relatively similar area.

 

Any ideas?

Posted

Ah, ToolPalettes...is that because they are annotative objects?

Looks like you can't set a scale for them to insert with. Then the size of the object is changed by the viewport.

I am interested in the macro. I visited AU online and there was discussion of Action Recordings (aka Macros). I'll have to play with it.

Do you know if I can record a macro (using 2010 MEP) then assign the macro to a button or toolbar and how?

Thanks for the help -

TJ

Posted

I'd say that action recordings are not macros, or atleast not the type Lee is talking about. for the tool palette, we insert non annotative objects all the time. If you have a block on a tool palette, and right click on it, you can go to properties and specify the scale there (3rd item under insert heading) If you are talking about a global setting for all blocks that are inserted, I'm sure there is a lisp routine that can be written to modify the insert command. Otherwise if this is something you are having to do with all projects, depending on the scale, perhaps redoing your blocks so they are 1:1 would be advisable, then you only have to scale them at 1 when they are inserted, and the viewport scales take care of the rest. Otherwise, you could just use an annotative block, as we do for our topography symbols.

Posted

ccowgill,

Letting the user set and change the global setting is exactly what I want to do.

I currently have the blocks set to scale that works most of the time. I just want to eliminate selecting the blocks scaling them down then repositioning them.

I don't have any knowledge of coding in Autolisp to do so.

Do you know if there are any tutorials on how to actually write? Most of the stuff I find online is not actual AutoCAD commands. It’s mostly how to add, search variables, etc..

Posted

That can be accomplished several ways, I'll take a look at some of the stuff I have and see if I can find anything that could help you out.

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