Reading iProperty Values and naming them as Files

Reading iProperty Values and naming them as Files

tolgay.hickiran
Advisor Advisor
474 Views
2 Replies
Message 1 of 3

Reading iProperty Values and naming them as Files

tolgay.hickiran
Advisor
Advisor

Hello Guys,

 

So we've been working on naming our drawing files from our ".ipt" files into ".dxf" files using iLogic. What we want to do is to generate Folders named with parts Material ( we are using sheetmetal so say like "Galvanized Steel - 2mm" so we will use the Material and the Thickness to name the Folder and then the parts drawing in a similar manner. We could name the dxf s with the "FilePath" but thats not very useful because we couldn't read the iProperty.Material or Thickness.

 

We've spent around 4-5 hours in the forums but couldn't find a good solution to do this. Help is much appreciated. Thanks.


Some worthwhile ideas
Copy Design should rename ilogic Rules too!
Why Nastran In-CAD doesn't have an SDK?IMPLEMENTED!

Tolgay Hickiran
Founding Partner
SignatureSignature

website
emailskypelinkedinyoutubeemail

0 Likes
475 Views
2 Replies
Replies (2)
Message 2 of 3

MechMachineMan
Advisor
Advisor

The google machine can often be more useful than searching the forums alone.

 

http://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html

 

 


--------------------------------------
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 3

tolgay.hickiran
Advisor
Advisor

You are absolutely right, my bad not mentioning that we've also spent a good amount of time on google too and found the exact same link. But we couldn't figure out how to use it still.

 

If anyone could write a sample code where we start a rule in an assembly that creates filenames with the properties of each part inside the assembly, that would be lovely.

 

 

 


Some worthwhile ideas
Copy Design should rename ilogic Rules too!
Why Nastran In-CAD doesn't have an SDK?IMPLEMENTED!

Tolgay Hickiran
Founding Partner
SignatureSignature

website
emailskypelinkedinyoutubeemail

0 Likes