Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Import Acad attributed block into Inventor

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
544 Views, 2 Replies

Import Acad attributed block into Inventor

To All,

 

I started the 30 Day eval for Inventor 2014.

 

WE need to import our attributed blocks from Autocad 2012 into Inventor.

We need to keep the Metadata., we take this data and export the information into a Excel spreadsheet.

Also, we place a text tag next to the block that will appear of the drawing for assembly to use for labels.

 

I have used Inventor and Solidworks for a while, but never worried about attributes.

 

Thanks,

SSECPerDiem856NJ

 

2 REPLIES 2
Message 2 of 3
xiaodong_liang
in reply to: Anonymous

Hi,

 

Could you clarify the scenario? Inventor API supports adding AutoCAD block with attributes. The following is a code demo from API help:

 

Public Sub InsertAutoCADBlockOnSheet()
    ' Set a reference to the drawing document.
    ' This assumes a drawing document is active.
    Dim oDrawDoc As DrawingDocument
    Set oDrawDoc = ThisApplication.ActiveDocument

    ' Obtain a reference to the desired AutoCAD block definition.
    Dim oBlockDef As AutoCADBlockDefinition
    Set oBlockDef = oDrawDoc.AutoCADBlockDefinitions.Item("Filled-1")

    Dim oSheet As Sheet
    Set oSheet = oDrawDoc.ActiveSheet

    ' If the definition contains prompted string inputs...
    'Dim sPromptStrings(1) As String
    'sPromptStrings(0) = "String 1"
    'sPromptStrings(1) = "String 2"

    Dim oTG As TransientGeometry
    Set oTG = ThisApplication.TransientGeometry

    ' Add an instance of the block definition to the sheet.
    ' Rotate the instance by 45 degrees and scale by .75 when adding.
    ' The symbol will be inserted at (10,10) on the sheet.
    Dim oAutoCADBlock As AutoCADBlock
    Set oAutoCADBlock = oSheet.AutoCADBlocks.Add(oBlockDef, oTG.CreatePoint2d(10, 10), (3.14159 / 4), 0.75)
End Sub

 

 

 

Message 3 of 3
Anonymous
in reply to: Anonymous

  1. Ability to import AutoCAD attributed block and extract data for parts and assemblies.
  2. Ability to take label data to make labels.
  3. Ability to add data to parts or assemblies. i.e. Port/Bit, Tank No, etc.
  4. Export 3D CAD – Solidworks or Inventor – BOMs to Excel. [both have this ability now]

What I can do is place text on views on the IDW, what I cannot do is lock them to the view without a leader attached.

It would be nice to make the leader invisible. I can turn of the arrow head but not the line.

 

The type of drawing I am discussing is a P&ID package drawing or the plumbing assembly to process type equipment.

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report