RKCadTools · Component Studio
A first valve, step by step

From a valve model
to your Plant 3D spec.

Build the shape in your browser. Let Studio create the Python script. Install it in Plant 3D, then use Spec Editor to make it available for piping.

You do not need to write Python. Start with one size, test it, and add more sizes when the first one works.

1. DrawShape + dimensions2. ExportScript + images3. RegisterPlant finds the shape4. Add to specCatalog → spec → drawing

Before you start

A starter is a starting shape.The in-editor guided example uses Ball valve · box actuator. The screenshots below use RK Flanged Valve Body to demonstrate the same workflow. Its example dimensions are not a product specification or a pressure rating. Replace them with your own valve data.

1Draw your valve

Start with the closest shape

  1. On the start page, choose Try the guided example to follow the five in-editor lessons with a ball valve and box actuator, or Open the editor to explore the model yourself.
  2. For a different valve, save your current work, click New model, then Component library. Choose a valve starter close to your product.
  3. Drag the empty background to turn the view. Scroll to zoom. Click Fit view if the model moves out of sight.
Component Studio workspace showing a flanged valve body and modeling tools
The toolbar above the model contains shapes, dimensions, Attach, Flange and Actuator. Click any screenshot to open it larger.
The component library with valve starter thumbnails
The library adds parts to the open model. Start with a blank model when you want to replace the starter.

Enter the real dimensions

  1. Select a part in the model or the Parts list. Its editing panel opens beside it.
  2. Choose Dimensions. Enter the required diameter and length, then press Enter. Check the units: Studio uses millimetres.
  3. Open Component → Parameters to change shared values such as L, BodyDiameter and FlangeThickness. A dimension can use a shared parameter or a formula.
  4. Check the whole valve after each change. Use Undo if a change is wrong.
Selected valve body with diameter and length controls beside it
In this starter, the body length is L-2*FlangeThickness. With L = 200 and two 20 mm flange plates, the body between the plates is 160 mm long.
Read the field label.A diameter is twice the radius. Keep existing parameter formulas when you want every size to follow the same rule.

Add flanges, holes and an actuator

  1. Select the part you want to build onto. Choose Flange or Actuator from the toolbar.
  2. For a flange, choose the series, pressure designation and size. Check every displayed dimension against the product drawing, including the bore. Click Insert flange when they are correct.
  3. For your own shape, add a box, cylinder, cone or ring. In its Geometry settings, add creates solid material; subtract cuts a hole from the chosen target. Use a subtracting cylinder for a bore.
  4. Use Attach to keep parts together. Pick the orange grip on the source part, then a green grip on the target. Snap grips brings the grips together; Attach with offset keeps their spacing. Press Esc to cancel.
Add flange dialog with series, size, bore and bolt hole dimensions
Flange settings create an editable plate. Check the actual flange type and facing separately.
Attach tool showing orange source grips on the valve body
Attach is useful for flanges and actuators that must follow the body.

Optional tools: Move and Rotate position parts; Duplicate makes another copy; Reference image / PDF lets you keep a product drawing beside the model. Surface changes the browser appearance; it does not set the Plant catalog material.

Check before continuingThe face-to-face length, flange sizes and bore match the valve drawing. There are no unwanted duplicate parts. Attached parts still follow the body when you change a dimension.

Start from STEP

Use the four stages across the top of the STEP workspace.

  1. Source: click STEP simplify… and choose a STEP/STP file. The detailed model becomes a tracing reference; your current component is kept until you create the result.
  2. Simplify: select a source part or CAD faces in 3D. Shift-click adds regions. Choose Box, Cylinder or Cone to fit an editable shape. Select its row to edit dimensions; Remove and Undo make corrections easy. Switch between Source and Shapes to choose what clicks in 3D select. Automatic suggests geometry while preserving existing shapes.
  3. Connections: pick flat nozzle end faces, add individual nozzles, or detect exposed faces. Check each S1, S2… centre and outward arrow. Pick nozzle set accepts 1–16; Escape restores the previous set until placement finishes. Equipment may have no connections.
  4. Finish: compare the result, confirm the nozzle review, then create a new component or add the shapes to the current model. Creating a new component replaces its old geometry and size rows; Studio Undo restores them. The completion message keeps your proposal available for comparison. Choose Edit model in Studio, then save and export.

Vacuum wrap: follow the outside and fill the interior

In Simplify, choose Shrinkwrap. The wrap follows the outside like vacuum-packed plastic. Choose the whole visible model or selected whole parts. Tight to faces keeps the original closed outer surfaces and fills the interior; use zero Surface offset for the closest fit. Smooth envelope keeps the more rounded approximation. Set the surface detail and opening size to seal, then click Preview wrap. Increase sealing size only to close larger bores or bridge nearby parts. Surface offset adds approximate clearance. Open or overly complex source surfaces use the smooth envelope with a visible explanation. Enclosed cavities are filled; wide gaps can remain. The result shows its closed-body count, volume and sampling accuracy.

Compare the preview, then click Use wrap → connections. Review nozzle centres and outward arrows. In Finish, download the CAD DXF or a ZIP with DXF, STL, geometry/settings JSON and nozzle coordinates. Nozzle objects are reference markers, not Plant connectors. The freeform wrap is separate from the editable shapes and Python script; Save and Export direct you to the wrap downloads while this path is active.

Open the DXF in a copied Plant drawing. Select the closed MESH and run CONVTOSOLID using a faceted conversion option, then inspect the solid before using it in the normal equipment workflow. Native conversion still requires live validation. Autodesk: convert watertight meshes to solids.

The older Bounding boxes option is under Automatic. It creates editable primitive boxes rather than a freeform wrap. All fitting approximates the source; enter DN, pipe OD and end types from product data. Python export continues to support Valve and Instrument groups.

2Give Plant the right connections

  1. Open Component. Give the script a unique name, for example RKDemoValve. Use letters, numbers and underscores; start with a letter. Keep the same name when you update this valve family.
  2. Set Component type and Plant group to Valve. Fill in the product description, nominal size and correct primary end type.
  3. Scroll down to Connection ports. A normal inline valve needs two ports: S1 and S2.
  4. Put each port at the centre of the outer connection face. Check that its direction points outward along the pipe axis. On this X-axis starter, S1 points -1,0,0 and S2 points 1,0,0.
  5. Set the correct end type for each port, such as FL for a flanged connection. Fill in Matching pipe OD and the other connection data for the pipe standard you use. Check both ports.
Component identity and shared parameters beside a valve
The captured starter still has “Not selected” as its primary end type. Choose the correct value before export.
S1 inlet port at the flange with outward direction, FL end type and a blank matching pipe OD field
S1 follows the inlet flange. The blank Matching pipe OD field must be completed. Scroll further down to review S2.
DN, bore and pipe OD are different values.DN100 is a nominal size. The valve bore is the opening through the body. Matching pipe OD is the outside diameter of the connecting pipe; take it from your piping standard.

To add a port to a new part, select a grip and use Create Plant port at this point. A port that follows a part is easier to keep correct when dimensions change.

3Make one family with several sizes

  1. Open Sizes and choose Add current dimensions as a size.
  2. Give the row its size label. Add another row and enter that size’s dimensions and connection values.
  3. Select each row in Preview size. Check the geometry and port positions for every size.
  4. Use Show dimension sketch for a reference view. Select a parameter to highlight its measurement. Return to the model with View options → Dimension sketch.
Sizes panel containing DN100 and DN150 rows and the preview selector
One parametric Python script serves all rows. Scroll the table sideways to see the remaining columns.

If you have a datasheet, the import controls can help prepare rows. Review the imported values against the source drawing before using them.

The sketch is a reference view.It is a projection of the model. Dense labels can overlap. Use the manufacturer’s drawing for production dimensions.

4Save and export your work

  1. Click Save → Save editable file. Keep this .component.json file so you can change the valve later. A browser save is convenient, but also keep a file backup.
  2. Sign in with your free account if prompted.
  3. Open Export → Family + sketch ZIP. Download the finished package. This gives you the script, family data and Plant images together.
  4. Extract the ZIP to a folder you can find again.
Save dialog with browser, editable file and Python script choices
Use Save editable file for the model you will edit later.
Export menu with Python script, Catalog CSV and Family plus sketch ZIP
Choose Family + sketch ZIP for the complete handoff.
FileWhat you use it for
RKDemoValve.pyThe shape Plant 3D registers.
RKDemoValve_640.png, _200.png, _64.png, _32.pngPlant dimension and thumbnail images. Keep their names unchanged.
family.component.jsonContinue editing the model and sizes.
family.csv, catalog.csvSize and catalog input to map into Autodesk’s catalog workflow.
Sketch, dimension map and instructionsHelp match the parameters to the product drawing.

Names use your script name. A CSV is not a Plant catalog and cannot be opened as a .pcat. Generating Python sends the model geometry to RKCadTools; reference images stay on your device.

5Install the script in Plant 3D

Option A · Send from Studio with RKCadTools

  1. Open your demo drawing in Plant 3D and load RKCadTools.
  2. Pair the RKCadTools browser extension using the Plant command RKCADTOOLS_BROWSER_PAIR. Follow the pairing prompts.
  3. In Studio, click Send to Plant 3D.
  4. Choose Install and test in active drawing for the first test. Send the request, then review and accept it in Plant.
  5. Read the Plant command line for the completed result. Inspect the inserted test geometry.
Connect to Plant 3D dialog with the action selector and Send to RKCadTools button
The screenshot shows Install script selected. Change the action to Install and test in active drawing when you also want registration and a drawing test.
ActionResult
Install scriptCopies the script. Continue with registration below.
Install and test in active drawingInstalls, queues registration and tests the shape in the active drawing.
Verify already installed scriptChecks the installed matching script. It does not install or register a new one.
“Queued” means the request has arrived.Wait for Plant to finish and read its result. A browser transfer message alone does not confirm that the valve works.

Option B · Copy the exported files manually

  1. In Spec Editor, check Tools → Modify Shared Content Folder to see the folder your installation uses. Cancel the dialog after checking it.
  2. Inside that shared content folder, open CPak Common\CustomScripts.
  3. Copy your .py file and the four matching PNG images into CustomScripts. Keep any earlier version as a backup outside this folder.
  4. Continue with registration.

For example, a local Plant 3D 2026 installation may use:

C:\AutoCAD Plant 3D 2026 Content\CPak Common\CustomScripts

Use your configured folder, especially if your team uses shared content. Plant and Spec Editor must use the same location. See Autodesk’s shared content folder guidance.

6Register the custom script

Registration makes the new shape available to Plant’s catalog tools. Copying the Python file alone does not do this.

  1. Switch to the Plant 3D drawing editor with your demo drawing open.
  2. Enter PLANTREGISTERCUSTOMSCRIPTS in the command line and press Enter.
  3. Wait for it to finish. Check for errors. If it fails, correct the script or folder problem before making a catalog component.
  4. Close and reopen Spec Editor to refresh its shape list.
Already used Install and test?If Plant completed registration and the drawing test successfully, you can continue to the catalog step.

Autodesk documents this command as the step that compiles scripts in CustomScripts and adds their shapes to Catalog Builder and Spec Editor: Register Custom Scripts.

7Find your valve in Spec Editor

“Spec Creator” is often used for this workflow. Autodesk’s application is called Spec Editor. First create a component in a catalog; then add that component to a spec.

  1. Open Spec Editor for the same Plant release you registered in.
  2. Open your own working catalog, or a copy of a catalog, and switch to the Catalog Editor tab.
  3. Click Create New Component (the button can appear as Create Component).
  4. Set Part Category to Valves, select the suitable Valve part type, and choose the units for your catalog.
  5. Select Plant 3D Parametric Graphics. Find your registered script name, for example RKDemoValve, in the shape list. Use the supported shape group/category filters if needed.
  6. Choose the shape, set the correct number of ports and connection information, and create the component.
  7. Add the required sizes. Match every geometry parameter to the Studio family table. Fill in the descriptions, material, pressure/facing and connection properties required by your catalog.
  8. Check each size and save the catalog.
Native Plant 3D 2026 Create New Component dialog showing category, units and graphics choices
Actual Plant 3D 2026 dialog, captured before choosing a valve. It currently shows the default Fittings / Elbow fields. Change these to your valve category and type. This capture does not show a registered RKDemoValve result.
Choose the parametric script shape.The Custom Graphics option is for a different graphics workflow. Your Studio Python valve belongs in the registered parametric shape list.

If graphics disappear after changing the end type, reopen Create New Component. Autodesk also describes selecting the shape with Undefined_ET, then setting the actual end type on the created family. Do not leave the finished valve with an undefined connection. Autodesk’s workaround.

Several sizes? Use Catalog Builder

In Catalog Builder, choose a custom script based shape under its advanced options. Export the native Excel workbook, map the Studio family dimensions and connection values into its columns, and build the catalog through Catalog Builder. Keep the Autodesk workbook’s format. Do not rename the Studio CSV to .pcat. See Autodesk’s Catalog Builder walkthrough.

8Add it to a spec and place it

  1. Switch to the Spec Editor tab and open a demo spec.
  2. Browse your saved catalog. Find the valve by its description, select the sizes you need, and choose Add to Spec.
  3. Review the spec rows and size availability, then save the spec into the demo project’s Spec Sheets location using your normal project workflow.
  4. Return to Plant 3D. Select that spec and the required nominal size. Open the Spec Viewer / valve selection and find your valve description.
  5. Insert the valve into a matching demo pipe. Check orientation, length and connections.
  6. Make a small test isometric and check the parts list: valve description, size and quantity should be correct. Complete the catalog’s isometric symbol and connection settings if needed.
Your first valve is ready when…It appears in the catalog, appears in the saved spec, connects to the intended pipe at both ends, and has the right data in the drawing and parts list. Repeat the checks for every size before sharing the catalog.

If something does not work

I cannot find the shape in Spec Editor

Check that the Python file is in the configured CustomScripts folder. Run PLANTREGISTERCUSTOMSCRIPTS in the matching Plant release, check its result, then reopen Spec Editor. Check the category/group filters and your exact script name. An Install script request still needs registration.

The valve is in the catalog, but not in the drawing list

Add its required sizes to the spec, save the spec and select that same spec and size in Plant. Check that the project is using the updated spec file.

The valve does not connect to the pipe

Check both port positions and outward directions. In the catalog and spec, check nominal size, matching pipe OD, end types and other required connection properties against the pipe and flange standard.

The preview or dimension image is missing

Copy all four PNG files beside the script and keep the same script-name stem. In the catalog workflow, use the 200 image for the thumbnail and the 640 image for the dimension view where those image fields are available.

A larger size looks wrong

Select that row in Studio. Check its dimensions, formulas and attached parts. Every size needs its own correct product data. Re-export and update the installed files, then register and retest the changed family.

Send to Plant does not complete

Check that RKCadTools is loaded and licensed, the browser extension is paired, and the correct demo drawing is active. Review the request in Plant and read the command line result. You can use manual installation if direct transfer is unavailable.