Jump to content

Recommended Posts

Posted

Hi

 

I want to add a new command in toolbar about scale lie this

scale ( enter ) + select object ( enter ) + specify base point ( enter ) + specify scale factor ( 0.99)

 

 

how can i write this formule in autocad a new command button

how can i select object for scale

 

^C^C_scale 0,0,0 0.99 this is wrong i know

 

can you help me how can i write this formule

 

my english is not good sorry

 

thank you

Posted

You want help with...

 

1) Writing the macro.

 

...and...

 

2) Creating a toolbar button.

 

Is that correct?

Posted

Try this for the predefined value you used as an example:

 

^C^C^P._scale;\;0,0,0;0.99;

 

 

Try this for entering the base point, and scale yourself:

 

^C^C^P._scale;\;\\

Posted

Here a keyboard version just add code to your acaddoc.lsp

 

(defun C:99) (command "scale" "p" "" "0,0,0" 0.5) )

 

Just select objects then type 99

 

Not sure about the 0,0,0 point though maybe better is replace 0,0,0 with (getvar "lastpoint")

Posted

RenderMan i copy this and paste button's formule

when i click button it is only write select object after i select and after i specify base point and scale factor.

I want when i click button it can start scale function after it can ask me select object after i select object it can be change scale factor ( 0.99)

maybe i did something wrong can you tell me again how will be it work ?

 

thank you for your help

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