CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.092.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 8479:

Question

CAD 
 %  platform  category 
A
AutoCAD 3D surfaces can be created also parametrically - generated automatically using a math expression (equation). For this you can use the free application CADstudio 3DPlot.

In your current DWG drawing, 3DPlot generates a 3D surface of the type polyface mesh by applying your custom defined expression, entered as [X,Y,Z] = f(U,V). So you can generate eny mathematic surfaces. The 3DPLOT command contains several sample objects.

To use your own math functions (after you load 3DPlot), you need to perform two steps:

  1. define your function;
  2. call the tool (3DPlot) to plot it.

For an example, a 3D surface defined by the expression Z = sin (2 * x * y) will need these two steps in the following form - enter the LISP commands in your AutoCAD command line:

  
(defun mySaddle (x y) (list x y (sin (* 2 x y))))  
(3DPlot mySaddle -1.0 1.0 0.1 -1.0 1.0 0.1)  

The first line defines your math expression to a LISP function "mySaddle" (must return a list of coordinates X Y Z). The second line then calls the plot engine for points in the interval (-1;1) in both directions, in a step of 0.1. The result will be a nice 3D "saddle".

Saddle

The top right image in the DWG format - see Boy surface.

See more information and download on CADstudio 3DPlot

ACAD
100% *CAD
20.2.2012    14851×  
Share the tip:
Digg it! Del.icio.us Facebook Twitter Google bookmark Technorati StumbleUpon
applies to: AutoCAD ·

See also:
Tip 14496:Convert scanned point clouds or photos to BIM objects - Scan-to-BIM.
Tip 14472:Overview of CAD formats supported in Inventor 2026 (import/export/AnyCAD).
Tip 14457:What is the difference between the commands GEOGRAPHICLOCATION, MAPCSASSIGN and GEOCSASSIGN in Map/Civil 3D?
Tip 14367:What CAD formats are supported in the free Personal (hobby) license of Autodesk Fusion?
Tip 14359:Automatic macro execution when opening a CAD file (AutoCAD, Inventor, Max, PowerMill)


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist