Showing posts with label solid. Show all posts
Showing posts with label solid. Show all posts

Monday, January 1, 2018

iLogic to Rename All Solid Bodies

iLogic to Rename All Solid Bodies


Issue:
Youve created a multi-body solid model with the intent to use the Make Components tool to write out each solid as a new part file. This works fine, but you find yourself wishing there was an easier way to tag each solid with a new name based on a prefix and a series number. For instance, youd like to name each solid in a part file called 45-723 as such: 45-723_01, 45-723_02, 45-723_03, etc.



Issue:
You can use this iLogic rule to quickly rename the solid bodies for you. In this rule we first look for a custom iProperty named "Prefix" and create it if it is not present. Then we write the part number to the custom iProperty if it is found to be empty. Then the rule uses the value of the custom iProperty named "Prefix" in an input box to query the user for the prefix:

 


The user can change the prefix at this point or accept the existing one. When we press the OK button the rule renames each solid body using the prefix and an increment number, adding a leading zero for each number less than 10.

Thanks to Barbara Han for the original code I used for this rule.



------- start of ilogic ------
check for custom iProperty and add it if not found
Dim prefix As String = "Prefix"
customPropertySet = ThisDoc.Document.PropertySets.Item _
("Inventor User Defined Properties")

Try
         prop= customPropertySet.Item(prefix)
Catch
      Assume error means not found
            customPropertySet.Add("", prefix)
End Try

write the part number to the Prefix iProperty if it is empty
if iProperties.Value("Custom", "Prefix") = "" Then
iProperties.Value("Custom", "Prefix") = iProperties.Value("Project", "Part Number") & "_"
else
end if

check that this active document is a part file   
Dim partDoc As PartDocument
link download
Read more »

Sunday, December 24, 2017

Hyundai Motor Co designs better with Solid Edge

Hyundai Motor Co designs better with Solid Edge



The automotive OEM jig and fixture department easily handles large assembly design with Solid Edge (Siemens PLM Software). Hyundai developed libraries and an automation program to enhance the productivity of jig design. The company also can share design libraries with other automotive component suppliers.







Learn how
http://www.plm.automation.siemens.com/en_us/about_us/success/case_study.cfm?Component=56028&ComponentTemplate=1481

Try Solid Edge for free

http://allyplm.com/solidedgetrial/

Learn how Solid Edge can save you time on design and development at http://allyplm.com/solidedge/ or sign up for an informative webinar at http://allyplm.com/futureofcad/


visit link download
Read more »

Friday, December 8, 2017

iLogic Solid Body Visibility

iLogic Solid Body Visibility




Issue:
You want to be able to control the visibility of Solid Bodies in a Multi Body part file using  your iLogic rule.




Solution:
Here is a quick example that demonstrates several options to toggle the visibility of solid bodies on and off.



Blog Archive