iLogic read Weldment material name

iLogic read Weldment material name

steeninvent_dk
Explorer Explorer
1,148 Views
4 Replies
Message 1 of 5

iLogic read Weldment material name

steeninvent_dk
Explorer
Explorer

Hello

 

I need to read the Assembly Weldment material name with iLogic, anyone know how I can achieve this?

 

Regards Lars

0 Likes
Accepted solutions (1)
1,149 Views
4 Replies
Replies (4)
Message 2 of 5

MechMachineMan
Advisor
Advisor

Weldment document iProperties

 

Dim oDoc As Document

oDoc = ThisApplication.ActiveDocument

 

oMatl = oDoc.PropertySets.Item("Design Tracking Properties").Item("Material").Value


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
Message 3 of 5

steeninvent_dk
Explorer
Explorer

Thankyou, but this don't read weldment material definition but regular document material?

0 Likes
Message 4 of 5

Curtis_Waguespack
Consultant
Consultant
Accepted solution

 

Hi steen,

 

I think this should be what you're looking for.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

DTP_PropertySet = ThisDoc.Document.PropertySets.Item("Design Tracking Properties")
oWeldMatl = DTP_PropertySet.Item("Weld Material").Value
MessageBox.Show(oWeldMatl, "iLogic")

 

Or this using @MechMachineMan 's example:

 

Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument
oMatl = oDoc.PropertySets.Item("Design Tracking Properties").Item("Weld Material").Value
MessageBox.Show(oMatl, "iLogic")

EESignature

Message 5 of 5

steeninvent_dk
Explorer
Explorer

THANKYOU

 

It works 🙂

0 Likes