Jump to content

command line


zostera

Recommended Posts

Creating geometry using the command line is relatively straightforward in autocad and maya

for example, to create a sphere (simple command sequence):

(autocad):

3d

s (sphere)

0,0,0 (origin)

2 (radius)

16 (longitudinal segments)

16 (latitudinal segments)

(maya):

sphere -r 5,2,5 -n bigBoy (create a sphere called bigBoy)

I have read the scripting manual and the user guide chapter on scripting, but do not understand how to create a sphere (or object) using the textport. Should I have looked somewhere else?

__________________________________________

What does 'cf' in 'opcf' represent?

Link to comment
Share on other sites

You sure you read the right documentation? Well, here's an example I made.

opadd sphere "bigBoy"; opparm bigBoy type ("mesh") rad ("5" "2" "5") rows ("20") cols ("10")

I've included a little CMD script.

Link to comment
Share on other sites

Thanks for replying MG, + for the downlaod; that's what I am looking for.

I will go through the documentation again. MEL and Autocad Lisp commands were easier to follow, but your example has helped with the syntax (opadd for the object; followed by opparm for the segments).

In the interim I found/checked 'help' in the textport and it explained quite a few functions, including opcf and opadd.

Much appreciated MG

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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