Discussion forum
|
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the rules of this forum.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
Help with 3DPlot |
Post Reply
|
| Author | |
joefromhersey
Newbie
Joined: 22.Jun.2012 Location: United States Using: Inventor2012 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: Help with 3DPlotPosted: 24.Jun.2012 at 02:37 |
|
Hi I am pretty new to AutoCad and need some help plotting 3D surfaces from mathematical functions. I downloaded the 3DPlot utility and followed the instructions from this site: http://www.cadstudio.cz/en/apps/3dplot/.
I defined a shape myFunc using: (defun myFunc (x y) (list x y (cos(x)+cos(y)))) However when I try to plot using: (3DPlot myFunc -1.0 1.0 0.1 -1.0 1.0 0.1) I get this error: error: bad function: -1.0 What am I doing wrong? Also would it be possible for me to get repeating units of the function cos(x)+cos(y)? |
|
![]() |
|
Vladimir Michl
Moderator Group
CAD Studio a.s. Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 1379 |
Post Options
Thanks(0)
Quote Reply
Posted: 17.Jul.2012 at 09:36 |
|
Hi, your function definition is not properly formated in AutoLISP syntax. Assuming you want to draw Z = cos(x) + sin(x), the proper syntax is:
This will draw a part of a 3D sphere.
|
|
![]() |
|
| Related CAD tips: | ||
| Tip 8903: | Draw normals of 3DFaces in AutoCAD DWG. | |
| Tip 8479: | How to generate 3D surface with a mathematic expression? | |
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,656 seconds.

![CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz] CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]](http://www.cadforum.cz/common/3d_cs2_t.gif)
CADforum Home
CAD Discussion
Tips & Tricks
Downloads
CAD Blocks
CAD Videos
Web Links
SW Development
Search



Topic Options
Post Options
Thanks(0)


