Create Plant 3D Python components. Visually.
Build custom parametric components for AutoCAD Plant 3D™ with Codaform. Model the geometry, connect dimensions and rules, and generate Python component code without writing it by hand.
Request trial accessBusiness trials require email-domain approval. Contact us before registering. The 14-day trial does not require a card.
What is a Plant 3D Python component?
A Python component describes geometry using a script and its parameters. In Plant 3D, primitives such as BOX and CYLINDER are building blocks for custom shapes. A useful component also needs the dimensions, connection information and metadata required by its intended workflow.
Codaform gives you a visual authoring workflow: build the shape in Designer, connect its dimensions in Parameter Graph, and inspect the generated output before using it in your Plant project. You still make the engineering decisions and validate the result.
If you already write scripts, Autodesk’s introduction to Plant 3D Python scripts explains the relationship between geometry, imports and component metadata. The guides below explain how to build that geometry in Codaform.
Build your first component
Start with editable geometry
Place a Box, Cylinder or another primitive. Set its dimensions and orientation, then combine shapes with Union, Subtract or Intersect when needed. Start with a simple model that is easy to check.
Follow the first-model tutorial or explore Boolean modelling.
Connect dimensions and rules
Bind object dimensions to named values in Parameter Graph. Use expressions and conditions where the design needs relationships, and test each configuration before export.
Define the connections
For connectable components, configure port locations, directions and connection dimensions. Geometry alone does not define a valid piping standard or a usable connection.
Place component ports and check nominal sizes and connection diameters.
Export and verify in Plant 3D
Inspect Export Preview, check the connection to the intended Plant project, then use the appropriate export workflow. Place a fresh instance and verify dimensions, geometry, colours and ports.
Plant 3D Python primitive reference
Start with the shape you need. Each guide covers Codaform’s placement workflow, dimensions and relevant export considerations. A primitive is a building block; combine and parameterize it to make your complete component.
Basic solids
Bends and transitions
Heads and segments
Choose the right export workflow
Python export saves generated code for inspection or a separately managed script workflow. Native component export publishes component content to the connected Plant project’s catalogue/spec destinations. Live Link sends a scene for iterative inspection; a successful live preview is not confirmation of a completed catalogue export.
Compare Python export and Live Link, or use the Plant 3D export troubleshooting guide.
Use your own licensed AutoCAD Plant 3D installation and the bridge matching your host release. Check the compatibility information supplied with your Codaform release. Some primitive previews approximate Plant’s native geometry; the individual guides explain the limitations to check.
Common questions
Do I need to write Python?
Codaform generates the component code from your visual design and parameters. You do not need to write that code by hand, but you do need to understand the geometry, dimensions and engineering requirements of the component.
Can I import existing Plant 3D Python components?
You can import compatible Python components. Support depends on the script and its dependencies; not every external script is supported. Read the Python import guide before planning a migration.
Can I use a cylinder to create a hollow component?
The Cylinder guide explains radius, height and the bore parameter. Boolean subtraction is another way to cut a hole while retaining editable source geometry. Check the Plant 3D Python Cylinder guide for the modelling workflow and limitations.
Can I sell the generated components?
You retain ownership of your designs and generated code, subject to the internal-use restrictions. Components and generated code may not be sold or supplied to other people or businesses. See the business licence terms.
Try your own component
Tell us about your company and the components you want to create. We will review your trial request and approve your company’s email domain before registration.
Request trial accessView business licensing or share the Company IT review with your team.