Jump to content

Default settings (Array, Path)


Recommended Posts

keiths: Which "below menu" are you referring to?

 

If you want a command to default to a particular option consider using either a macro assigned to a button or a lisp routine.

Link to comment
Share on other sites

Hi ReMark,

 

 

I have attached an image of the toolbar, am afraid I don't have much of a clue with macros or lisp routines...

Array.jpg

Link to comment
Share on other sites

You will have to create a tool button somewhere, the ribbon or on a tool palette. The macro would be

^C^C_arraypath;\;\;;;I;6;M;D;;

This will be for 6 items, modify for the number you want as a default.

Link to comment
Share on other sites

I'm still waiting to see the toolbar. The image you posted is of the Array command's contextual ribbon tab.

 

What default(s) did you want to set to the toolbar you speak of?

Link to comment
Share on other sites

Here is the lisp equivalent you would add to your acaddoc.lsp and just type AP.

 

(defun c:ap6 ( / obj obj2 num)
(setq obj (car (entsel "pick object")))
(setq obj2 (car (entsel "pick path")))
(command "_arraypath" obj "" obj2 "I" 6 "" "M" "D" "")
)

Link to comment
Share on other sites

  • 7 years later...

This is very interesting topic, I understand that M is the parameter for distance and it reads the length of curve and what is D for? It prompts me to put Dimension type, what are the options and effect for this macro? Currently I removed this parameter from my function as I don't find any use for it.

 

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