Export Step Files with Custom Iproperties

Export Step Files with Custom Iproperties

alexander.naljot
Advocate Advocate
2,267 Views
10 Replies
Message 1 of 11

Export Step Files with Custom Iproperties

alexander.naljot
Advocate
Advocate

Hello dear inventor community,

 

how do I get my custom Iproperties appended to a step file? Is it even possible.

 

Best regards
Alex

Iproperties.JPG

0 Likes
2,268 Views
10 Replies
Replies (10)
Message 2 of 11

alexander.naljot
Advocate
Advocate

 

The possibility to add costum properties to the step file is unfortunately not available in Inventor.

In the other CAD software, it works without problems such as Solidworks.

 

Can somebody from Autodesk tell me if it's possible through API?

 

😀 Be happy do not worry!!!

 

0 Likes
Message 3 of 11

YuhanZhang
Autodesk
Autodesk

Hi Alex,

 

Unfortunately both UI and API don't support to export the custom iproperties to step file in Inventor. You can log a new Idea for this requirement.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

Message 4 of 11

alexander.naljot
Advocate
Advocate

Hello Yuhan Zhang,


Thank you for your advice, I will post this idea.


But I tried something and came to the following idea. When exporting a step file from Inventor go to the following information please see photo. Like Description, Authorisation, Solid label line.

 

Can I use the API to write the user-specific properties into the description line or into the authorization line.

I found some scripts in different forums and will try to create a script for myself.

Best regards

Alex

 

Step_options in Inventor.JPGStep_Text_File_export.JPG

 

 

0 Likes
Message 5 of 11

YuhanZhang
Autodesk
Autodesk

Yes, you can. Here is the sample VBA code on documentation:

 

https://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-5D978C1C-7C77-410D-8CB4-C9BD992D20EB

 

Hope it helps.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

Message 6 of 11

alexander.naljot
Advocate
Advocate

Hello Yuhan Zhang,

I have tried to combine the different scripts together but my VBA knowledge is limited. Would it be possible for you to help me?

That is my wish:

1. I want to write several custom properties when exporting the Step file to Custom Line with a tren character.
2. I want to export from an assembly that contains several parts: The parts in the assembly have the same custom properties, but they are filled with different values. ZB. Custom Ipropertie diameter and length.

 

Thank you for your help.

Best regards

Alex

 

 

0 Likes
Message 7 of 11

wouter
Advocate
Advocate

I used the code provided by you and this works fine for most of the properties.

But for the iproperty "Title" this doesn't work.

If i check the created STEP file it's also not mapped as Title but as name...

I tried:

		oOptions.Value("name") = " "
		oOptions.Value("Title") = " "

Is it possible to do it this way?

Message 8 of 11

DWhiteley
Advisor
Advisor

I agree, this should be sorted.

If you export a step file from Inventor, the path&file name are exported in the NAME property.

The receiving company will also see that location in the NAME property.  (or TITLE in Inventor)

The senders folder location will probably not want to be shared with the receiver.

So how can this be achieved without using an external programme to edit the file? 

 

BTW using oOptions.Value("name") = "TEST.step" in iLogic doesn't work.

 

Dave W

0 Likes
Message 9 of 11

wouter
Advocate
Advocate

I'm not sure if there is a solution provided by autodesk by now but i use a work around.

Via ilogic, I savecopy the step to a directory where no harmful information is visible in the path and then copy it to the folder where i need it. 

0 Likes
Message 10 of 11

DWhiteley
Advisor
Advisor

That’s a good idea, many thanks.

 

Autodesk, I hope you’re reading this? Solid works outputs  just the file name in the ‘name’ property, whereas Inventor puts the folder structure as well. I wonder about the legal implications of the company sending out their folder structure  unknowingly in the Step file?? 

0 Likes
Message 11 of 11

YuhanZhang
Autodesk
Autodesk

The "Name" is not supported for STEP translator options at present, if you don't want to expose your local file location you can edit the exported step file to remove it. You can also log to Ideas to ask for API support this. 



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes