Inventor General Discussion

Inventor General Discussion

Reply
Distinguished Contributor
omartin
Posts: 134
Registered: ‎12-18-2007
Message 1 of 13 (1,352 Views)

sheet metal extents add-in

1352 Views, 12 Replies
07-03-2012 07:32 AM

I am using IV ultimate 2013

 

Hi just found about this add-in:http://modthemachine.typepad.com/my_weblog/2012/05/sheet-metal-extents-add-in-update.html

 

But its not working for me:

I ran the installer

 

created a sheet metal part and hit rebuild all, it did not create any proeprties, also tried to manually create the properteis then hit rebuild, no go.

 

I also did a search on my hardrive for the ApplicationPlugins, and placed the sheet metal folder in all of them(there were 3)

tried again noto.

 

The add-in also does not appear in the add-in manager.

 

Any Ideas

 

Or is there differnt wat to get the flat pattern dimensions in 2013

 

TIA!

*Expert Elite*
Curtis_Waguespack
Posts: 2,898
Registered: ‎03-08-2006
Message 2 of 13 (1,347 Views)

Re: sheet metal extents add-in

07-03-2012 07:53 AM in reply to: omartin

Hi omartin,

 

If your goal is to show the flat pattern extents on the drawing then indeed this is built into Inventor now. You can do so by using the Text tool and pulling the Sheet Metal Properties as shown here.

 

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


 

 

Autodesk Inventor Sheet Metal Extents Text.png



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





Distinguished Contributor
omartin
Posts: 134
Registered: ‎12-18-2007
Message 3 of 13 (1,343 Views)

Re: sheet metal extents add-in

07-03-2012 08:14 AM in reply to: Curtis_Waguespack

Hey Curtis thanks for they reply.

But I plan on showing it in the BOM, Ideally it would be in the fxParameters (which I think this add-in supports)

 

But I have some custom variables in my BOM that I use, and I am hoping I can point to those custom properties.

 

I will keep on trying to figure it out.

 

Regards

*Expert Elite*
Curtis_Waguespack
Posts: 2,898
Registered: ‎03-08-2006
Message 4 of 13 (1,329 Views)

Re: sheet metal extents add-in

07-03-2012 09:01 AM in reply to: omartin

Hi omartin,

 

If it helps, you can create a simple iLogic rule to place the extents information into custom iProperties that can be used in the BOM & Parts List. Attached is example with the rule placed in the part, but I'd recommend creating the rule as an external rule, so you can have it run on all sheet metal parts when they are saved, etc.

 

http://inventortrenches.blogspot.com/2012/01/creating-basic-ilogic-rule-with-event.html

 

 

Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument

'make sure the part is a sheet metal part
If oDoc.SubType <> "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then
MessageBox.Show("This is not a sheet metal part.", "iLogic")
Return 'exit rule
Else

Dim oSMDef As SheetMetalComponentDefinition
oSMDef = oDoc.ComponentDefinition

Dim sExtLength As String = "extents_length"
Dim sExtWidth As String = "extents_width"
Dim sExtArea As String = "extents_area"
Dim iRoundValue as Integer = 2
 
'check for flat pattern
If oSMDef.FlatPattern Is Nothing Then
'create a flat pattern if it doesn't exist
oSMDef.Unfold
oSMDef.FlatPattern.ExitEdit
Else

'define custom property set
customPropertySet = ThisDoc.Document.PropertySets.Item _
("Inventor User Defined Properties")

'look for custom iproperty and try to set it
Try
          iProperties.Value("Custom", sExtLength) = Round(SheetMetal.FlatExtentsLength, iRoundValue)
Catch
' assume error means not found and create it
            customPropertySet.Add(Round(SheetMetal.FlatExtentsLength,iRoundValue), sExtLength)
End Try

'look for custom iproperty and try to set it
Try
          iProperties.Value("Custom", sExtWidth) = Round(SheetMetal.FlatExtentsWidth,iRoundValue)
Catch
' assume error means not found and create it
            customPropertySet.Add(Round(SheetMetal.FlatExtentsWidth,iRoundValue), sExtWidth)
End Try

'look for custom iproperty and try to set it
Try
          iProperties.Value("Custom", sExtArea) = Round(SheetMetal.FlatExtentsArea,iRoundValue)
Catch
' assume error means not found and create it
            customPropertySet.Add(Round(SheetMetal.FlatExtentsWidth,iRoundValue), sExtArea)
End Try

End if
End If

 

 

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.





*Expert Elite*
karthur1
Posts: 4,204
Registered: ‎04-27-2005
Message 5 of 13 (1,191 Views)

Re: sheet metal extents add-in

10-25-2012 11:57 AM in reply to: Curtis_Waguespack

Curtis,

How can I get this information (extents_length and Extents_width) to be written to the model user parameters instead of the custom iProperty parameters?

 

Thanks

*Expert Elite*
karthur1
Posts: 4,204
Registered: ‎04-27-2005
Message 6 of 13 (1,139 Views)

Re: sheet metal extents add-in

10-30-2012 12:56 PM in reply to: karthur1

Curtis wrote the iLogic code to get put this information in the User Parameters. Here is the thread that discussed doing this.  The code is attached below.

New Member
mikefaith8795
Posts: 2
Registered: ‎04-03-2007
Message 7 of 13 (705 Views)

Re: sheet metal extents add-in

07-03-2013 07:57 AM in reply to: Curtis_Waguespack

Hello,

I am trying to follow what you guys have outlined on these threads and am having a bit of difficulty. I was able to get the rule working but cannot seem to get the rest of the way. I created the external iLogic rule and set the event trigger to "Before Save Document" like the basic iLogic thread said but when I open a part that was previously created, and click save, the iLogic rule does not run. It does show up in the iLogic browser as being available, but I thought that if it was created as an external rule it would run on any part when you click save even if you are trying to do it in a file that the rule was not created in.

 

Please help.

Mike

*Expert Elite*
karthur1
Posts: 4,204
Registered: ‎04-27-2005
Message 8 of 13 (694 Views)

Re: sheet metal extents add-in

07-03-2013 08:26 AM in reply to: mikefaith8795

Mike,

Yes, you are correct about the external rule being able to run outside the part it was created in.

 

Is this box checked?

 

2013-07-03_1025.png

 

 

*Expert Elite*
mrattray
Posts: 2,493
Registered: ‎09-13-2011
Message 9 of 13 (690 Views)

Re: sheet metal extents add-in

07-03-2013 09:06 AM in reply to: mikefaith8795
Although the external rule will be available to every part, the event trigger setting is specific to the part file. So, every part that you want to have behave this way will need it's event triggers configured like karthur1 has shown above.
Mike (not Matt) Rattray

New Member
mikefaith8795
Posts: 2
Registered: ‎04-03-2007
Message 10 of 13 (680 Views)

Re: sheet metal extents add-in

07-03-2013 11:33 AM in reply to: karthur1

Yes that box is checked. So even though it is an external rule, it isn't a global setting? It is a per file setting?

 

Thank you for your help,

Mike

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

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