How to check materical's name in Inventor Iproperties

How to check materical's name in Inventor Iproperties

SandmanINV
Advocate Advocate
413 Views
1 Reply
Message 1 of 2

How to check materical's name in Inventor Iproperties

SandmanINV
Advocate
Advocate

Hi, 

I created a new material named "new1". 

But when i running again for that part, programe go error, i see that had a material named "new1" in inventor iproperties.

I think it created in the 1st time a run my programe. 

So i think i need to check existing of materical before i create,

How can i check in inventor material is had already "new1" ?

Thank you,

0 Likes
Accepted solutions (1)
414 Views
1 Reply
Reply (1)
Message 2 of 2

YuhanZhang
Autodesk
Autodesk
Accepted solution

You can log to IdeaStation to ask for a new API like Assets.NameIsUsed for this wish.

 

As a workaround you can add error handler to check if the add method fails.



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