Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I get correct partnumber when using iPart and iLogic

14 REPLIES 14
Reply
Message 1 of 15
zdhrichard
571 Views, 14 Replies

How can I get correct partnumber when using iPart and iLogic

I made part with iPart. And I use iLogic to engrave the P/N on the part.

 

If just in *.ipt model, the engraved P/N is correct. But if I put different parts of this iPart, the engraved P/N is the Active part.

 

I used following in my rule in *.ipt.

ModelPartNumber = iProperties.Value  ("Project", "Part Number"

 

Could somebody advise how can I get correct P/N number when the part is not in active status?

 

I am using Inventor 2009, WIN XP SP3.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
14 REPLIES 14
Message 2 of 15
jletcher
in reply to: zdhrichard

But if I put different parts of this iPart????

 

Don't make since.

 

Do you mean when you but different ipart members in an assembly the engraving does not update to show new part number in the engraving?

 

ipart member 1 = XXX1 in assembly part engraving shows XXX1

ipart member 2 = XXX2 in assembly part engraving still shows XXX1

 

Is this what it is doing?

Message 3 of 15
zdhrichard
in reply to: jletcher

Yes, this is my trouble.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 4 of 15
jletcher
in reply to: zdhrichard

Message 5 of 15
jletcher
in reply to: zdhrichard

can you post your file?

Message 6 of 15
zdhrichard
in reply to: jletcher

Yes, I checked this one.

In fact, I copied the code to engrave the P/N. In iPart model, if I change to other P/N, the engrave is correct. But if put in iAssembly, the engrave is the Active one not the engrave expecting. Just the engrave, rest is correct.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 7 of 15
zdhrichard
in reply to: jletcher

Unfortunately, I think I cannot give you the part what I am working.

 

I will make a simple model to show you. Give me a little time.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 8 of 15
jletcher
in reply to: zdhrichard

ok I think I found the issue. ok post part when you get it done because I dont have anything set up to test.

Message 9 of 15
jletcher
in reply to: zdhrichard

found this it may help...

 

http://beinginventive.typepad.com/being-inventive/2011/07/emboss-text-in-an-ipart.html

 

But I think this is a bit much. I think I found an better way.

Message 10 of 15
zdhrichard
in reply to: jletcher

Thanks lot. Here is one simple model which I am working too.

 

Please note: I am using Inventor 2009 (32 bits). If you modify the model or code, please save it in 2009 Version.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 11 of 15
jletcher
in reply to: zdhrichard

almost have it I think running some test. I am on 2012 but I will look at my 2009-2010 and see..

Message 12 of 15
zdhrichard
in reply to: jletcher

Hello jletcher,

 

Thank you lot for your time.

 

Did you get solution yet? Any suggestion for it?

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 13 of 15
jletcher
in reply to: zdhrichard

Yes got it but you will have  to wait till the morning i left my drive at home...

Message 14 of 15
jletcher
in reply to: zdhrichard

Ok here you go sorry for not getting back Friday Had an issue myself I had to take care of. But what you have to do is make a sketch for every part number. As of right now your 2009 will not do what is needed to use illogic. In fact 2012 or 2013 has not much of a better way. So make a sketch and engraving for every part number.

Add.PNG

Then in the table add them to the table.

Add 2.JPG

 

 Remove the rules

Delet Rules.PNG

And here is the works

All Good.JPG

 

 

This is the best and really only way for you.

 

There are other ways in 2012 and 2013 with form or excel...

Message 15 of 15
zdhrichard
in reply to: jletcher

Thanks lot for your help and time, jletcher.

 

In fact, I have hundreds of part for each iPart and iAssembly. So, I cannot use suppress/unsuppress option to solve this problem.

 

Maybe I will not use iPart, but change everthing to iLogic if I could find a way to change part in assembly as I did in iAssembly by using Table Replace.

 

Thanks again.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory

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

Post to forums  

Autodesk Design & Make Report