linkedin
Q:

How can you replicate the 'Copy from View' tool in Autodesk Inventor using the API?

  • Aaradhya caterers
  • Mar 31, 2026

1 Answers

A:

To avoid false positives, you can check if the link is still active before trusting the Mirror property:


Dim oDerivedPartComp As DerivedPartComponent
Set oDerivedPartComp = oCompDef.Features.DerivedPartComponents.Item(1)

If Not oDerivedPartComp.ReferencedFile Is Nothing Then
    If oDerivedPartComp.Definition.Mirror = True Then
        ' Valid mirrored derived part
    End If
Else
    ' Link is broken — don't trust Mirror property
End If

This ensures you're only evaluating the Mirror flag when the derived part is still linked to its source.

  • Aswin Thapa
  • Apr 10, 2026

0 0

Related Question and Answers

A:

Yes, you absolutely can sell your Inventor add-in, and Autodesk provides a formal channel for doing so through the Autodesk App Store. Here’s what you need to know:

Selling Your Add-In via Autodesk App Store

  • Eligibility
  • Submission Process
  • Monetization Options
  • Guidelines
  • Kateregga
  • Apr 09, 2026

A:

Here is your content converted into **HTML format** with clean structure and preserved VBA code: ```html

Setting Model State via API (for non-iAssembly documents)

Here’s how to set the active Model State for a part or assembly document:


Dim oDoc As Document
Set oDoc = ThisApplication.ActiveDocument

Dim oModelStates As ModelStates
Set oModelStates = oDoc.ComponentDefinition.ModelStates

' Activate a specific model state by name
Dim targetState As String
targetState = "CustomState1"

If oModelStates.Item(targetState).Name <> oDoc.ComponentDefinition.ActiveModelState.Name Then
    oModelStates.Item(targetState).Activate
End If
  • Austin Lugterer
  • Apr 08, 2026

A:

Inventor Release 11 and later support saving PNG images using the SaveAsBitmapWithOptions method. This was not available before Release 6, but by R11, it's fully functional.

Here’s a working example adapted for R11:


Sub SaveIsometricViewAsPNG()
    Dim oView As View
    Set oView = ThisApplication.ActiveView

    ' Set camera to isometric view
    With oView.Camera
        .ViewOrientationType = kIsoTopRightViewOrientation
        .Fit
        .Apply
    End With

    ' Define PNG export options
    Dim options As NameValueMap
    Set options = ThisApplication.TransientObjects.CreateNameValueMap
    options.Value("TransparentBackground") = True ' Optional: set to False for solid background

    ' Save as PNG
    Dim ImgFname As String
    ImgFname = "C:\Temp\MyPart.png"
    Call oView.SaveAsBitmapWithOptions(ImgFname, 400, 400, options)
End Sub
  • Austin Lugterer
  • Apr 10, 2026

A:

Step-by-Step: Enable 18' Pipe in Tube & Pipe Routes

  1. Edit Content Center Family
    • Open Content Center Editor from the Tools tab.
    • Locate the pipe family you're using (e.g., ANSI B36.10 Steel Pipe).
    • Right-click → Edit Family.
    • Add a new row with:
      • Nominal Diameter: 18
      • Outside Diameter: 18.0 (or per spec)
      • Wall Thickness: as required
      • Ensure all required parameters are filled.
  2. Publish the Family
    • Save and publish the updated family back to Content Center.
    • Restart Inventor if needed to refresh the library.
  3. Update Tube & Pipe Style
    • Go to Tube & Pipe Styles.
    • Select your style (e.g., "Steel Pipe").
    • Click Edit next to the pipe component.
    • Click Change Size → Select the new 18' size.
    • Apply and save the style.
  4. Create Route with 18' Pipe
    • Start a new route.
    • Select the updated style.
    • The 18' pipe should now be available for placement.
  • Archana Parikh
  • Apr 07, 2026

A:

The "+/-" toggle in the Edit Parts List dialog controls the expansion or collapse of structured BOM rows, especially in hierarchical assemblies. Unfortunately, this UI element isn’t directly exposed via the Inventor API or VBA as a toggle method.

However, there are workarounds depending on what you're trying to achieve:

Control Structured View via PartsListRow.ChildRows

You can simulate expansion/collapse by hiding or showing child rows programmatically. Here's a VBA snippet that toggles visibility:


Dim oDrawDoc As DrawingDocument
Set oDrawDoc = ThisApplication.ActiveDocument

Dim oPartsList As PartsList
Set oPartsList = oDrawDoc.ActiveSheet.PartsLists.Item(1)

Dim oRow As PartsListRow
For Each oRow In oPartsList.PartsListRows
    If oRow.ChildRows.Count > 0 Then
        ' Toggle visibility of child rows
        Dim oChildRow As PartsListRow
        For Each oChildRow In oRow.ChildRows
            oChildRow.Visible = Not oChildRow.Visible
        Next
    End If
Next

This doesn’t affect the "+/-" icon directly, but it mimics the behavior by collapsing or expanding rows.

  • Zareena Sultan
  • Apr 01, 2026
Autodesk Inventorlogo

Autodesk Inventor

Autodesk

4.4

View Details
img

Have you used this product?

Share your experience, help others make better choices!

Add Review
img

Have a Question?

Get answered by real users or software experts

Ask Question

Help the community

Be the First to Answer these questions

In Autodesk Inventor Tube & Pipe, why are only certain components available based on the active style?

Write Answer

How can I underline text in a Parts List cell in an Autodesk Inventor drawing?

Write Answer

Can I export IGES with solid geometry from Autodesk Inventor using VBA?

Write Answer

Can I use AutoLISP routines directly inside Autodesk Inventor?

Write Answer

Still got Questions on your mind?

Get answered by real users or software experts

Disclaimer

Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.

Software icon representing 20,000+ Software Listed 20,000+ Software Listed

Price tag icon for best price guarantee Best Price Guaranteed

Expert consultation icon Free Expert Consultation

Happy customer icon representing 2 million+ customers 2M+ Happy Customers