Inventor General Discussion

Inventor General Discussion

Reply
*Expert Elite*
dan_inv09
Posts: 2,318
Registered: ‎12-12-2006
Message 11 of 20 (733 Views)

Re: Component View Item Numbers – Methods and Suggestions

06-15-2012 02:50 PM in reply to: Scotty87

If there was an add-in or something that would quickly create a view rep for each part

If you could make added parts not affect certain view reps after creation

If the grayed out boxes in the text dialog worked (maybe a little smarter, but let's start with just "work")

 

Unless I'm reading your solution wrong, those are the differences between it and method 2

 

We shouldn't go asking for brand new features when all we need is small enhancements (fixes) to an existing one.

[It seems like they went, "Time's up, people. Put your pencils down!" every time they wanted a new feature in the upcoming release. Plus if they start on something new who knows what might get messed up.]

 

 

 

(For your last point for method 2, I've always had to create a new ("separate") base view for a flat pattern. Am I missing something?)

Contributor
Scotty87
Posts: 17
Registered: ‎02-16-2012
Message 12 of 20 (733 Views)

Re: iLogic: Create a View Representation for Each Part In theAssembly

06-16-2012 04:59 AM in reply to: Curtis_Waguespack

Thanks for the code Curtis.

I've just created a rule in an assembly file and typed the code in (tried to copy paste but got about 6 errors), and when I try to run it I get the error "Object reference not set to an instance of an object".

I'm still a bit of a noob with iLogic/VBA, but I'm picking it up.

*Expert Elite*
Curtis_Waguespack
Posts: 2,950
Registered: ‎03-08-2006
Message 13 of 20 (714 Views)

Re: iLogic: Create a View Representation for Each Part In theAssembly

06-16-2012 07:50 AM in reply to: Scotty87

Hi Scotty87,

 

Here's the rule in a text file. Hopefully the errors were just due to the copy/paste from the forum. If you still see errors after copying and pasting from the text file and running the run in a simple assembly just let me know.

 

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

 

Edit: I just noticed a flaw in this rule that I'll need to fix at some point (if you two instances of a part in the assembly (PartA:1 and PartA:2) and you delete instance one (PartA:1), the rule does not make a view rep. I'll need to fix it so that it looks for the first instance of each part, rather than instance " :1" of each part.



  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Contributor
Scotty87
Posts: 17
Registered: ‎02-16-2012
Message 14 of 20 (705 Views)

Re: iLogic: Create a View Representation for Each Part In theAssembly

06-16-2012 08:42 PM in reply to: Curtis_Waguespack

Hey Curtis,

Sorry to be a pain but is that post supposed to contain an attachment?

Cheers.

*Expert Elite*
Curtis_Waguespack
Posts: 2,950
Registered: ‎03-08-2006
Message 15 of 20 (701 Views)

Re: Component View Item Numbers – Methods and Suggestions

06-17-2012 02:04 AM in reply to: dan_inv09

Hi Scotty87,

 

Ooops! Sorry about that. :smileyembarrassed:

 

Here it is.

 

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




  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Contributor
Scotty87
Posts: 17
Registered: ‎02-16-2012
Message 16 of 20 (697 Views)

Re: Component View Item Numbers – Methods and Suggestions

06-17-2012 02:50 AM in reply to: dan_inv09

Thanks for that! It's working well so far.

Active Member
rkeller
Posts: 11
Registered: ‎08-30-2007
Message 17 of 20 (628 Views)

Re: Component View Item Numbers – Methods and Suggestions

10-28-2012 09:45 PM in reply to: Scotty87

YES! YES! 

We need to be able to have the item numbers be carried through to other views.  It gives much more continuity to the drawing set.  

It would be great if we could access the item number you would find within the bill of materials in our own symbols allowing us to give much needed information to the fabricators without confusing them.

*Expert Elite*
dan_inv09
Posts: 2,318
Registered: ‎12-12-2006
Message 18 of 20 (249 Views)

Re: Component View Item Numbers – Methods and Suggestions

03-23-2014 02:09 PM in reply to: Curtis_Waguespack

Sorry for digging up a very old thread (plus I just realized I had participated in it).

I don't know if I ever used the code before but I just tried it and if we can sort out one thing I will definitely use it a lot.

 

I am working with a housing assembly which has top and bottom subassemblies (and some other junk). It created view reps for each part but all views show nothing except the one part that happens to be in the top level.

Is there an edit which I can do so it will show the parts when they are in subassemblies?

 

Because of that I have to unlock each view to fix them. I could just delete the lock line from the code to fix that, so that's not to bad, or if I could multi-select to unlock that would be great (that's nothing to do with the code).

And the browser appears to be linked to the view rep, so every time I activate another view it collapses everything. Could something in the code be affecting it, or if I had them expanded before I ran it would that fix this annoyance?

 

This is really awesome, I was really dreading this but now it's a whole lot quicker - if it could also drop everything into a drawing too (that would probably have to be a separate code - can anyone tell me what are the best current resources for learning to write my own?) - then we just need it dimension itself and they can lay me off, ha ha.

Active Member
Drew_Hawk
Posts: 6
Registered: ‎03-17-2014
Message 19 of 20 (231 Views)

Re: iLogic: Create a View Representation for Each Part In theAssembly

03-24-2014 06:13 AM in reply to: Curtis_Waguespack

This is the insanity of INVENTOR! While it tries to cater to the ENGINEERING side of things, it seems to ignore some of the "real world" users that use it to create manufacturing drawings.

 

I've used INVENTOR for over 10 years, at several companies and I think we get a lot of good production from the software. However, we do not do "piece part", single item drawings that link back to a "part number" drawing in order to keep everything neat and in an ENGINEERING standard drawing set.

 

We start off with some standard sized steel member (content center parts: angle, tubes, beams) and have our own library of sheet goods (fiberglass, abs, pvc) as well as a library of custom extruded parts (angles, tubes). This all works awesome inside INVENTOR's modeling world.

 

However, the bulk of these parts are almost NEVER used in two different assemblies! Everything we do is custom. And it seems to be the way shops run where I've worked. THIS IS NOT A UNIQUE SITUATION!

 

Every Parts lists/BOM has items 1,2,3...... But these parts are unique to this project, and this assembly. To NOT have the ability to export the item number to a symbol is INSANE! Currently we have the filename of the part exported to a symbol that we use for quality control checking. But our "part number" portion is manually entered, and SHOULD be automatic! And this symbol SHOULD include the "part number" and "quantity"!!!

 

Additionally the item quantity is not exportable! We have a person manually go through drawings and add quantities beside the part number balloon manually (with a pen). So the shop personnel can quickly total the parts needed and NOT reference the BOM/PARTS LIST every time. This is increasingly important depending on the size of the assembly!

 

To have the ability to export the part number and the quantity to a symbol should be TOP PRIORITY with the INVENTOR programmers. It's something that has been missing from the software since the begninning!

Member
280122
Posts: 5
Registered: ‎09-10-2014
Message 20 of 20 (54 Views)

Re: Component View Item Numbers – Methods and Suggestions

09-15-2014 03:42 AM in reply to: Curtis_Waguespack

Hi Curtis,

i am using your I-logic rule to create automatic view rep in my assemblyies and sub assemblies. but i am always getting this errors below.

 

Any idea of how i can solve them ?

 

Thanks for your time;D

 

 

Alessandro

 

Error message

 

Error in rule: Automatic view creation rule, in document: BG_Komplett.iam

unknown error (Exception from HRESULT: 0x80004005 (E_FAIL))

 

More Info

 

System.Runtime.InteropServices.COMException (0x80004005): unknown error (Exception from HRESULT: 0x80004005 (E_FAIL))
   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   at Inventor.DesignViewRepresentation.set_Locked(Boolean )
   at LmiRuleScript.Main()
   at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
   at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.