Gianlucagiangian
Guest
Hi, I'm not very practical with ilogic, you know how if I create a part I, and I execute the rule, transcribes me the share of extrusion in the field measured_quantity, while if I use the models of the center contained, to say a tubular, the formula does not work?
dim ans
ans = messagebox.show("you want to perform before saving?", "extrusion rule", messageboxbuttons.yesno)
if ans = vbyes then
'messagebox.show(" running")
dim doc as partdocument = thisdoc.document
dim cd as partcomponentdefinition = doc.componentdefinition
if cd.features.extrudefeatures.count > 0 then
'messagebox.show("find extrusions")
dim extrusion1 as extrudefeature = cd.features.extrudefeatures.item(1)
iproperties.value("custom", "measuring_quantity") = extrusion1.featuredimensions.item(1). parameter.value/100
♪
'messagebox.show("there are no extrusions")
end if
end if
Thank you.
dim ans
ans = messagebox.show("you want to perform before saving?", "extrusion rule", messageboxbuttons.yesno)
if ans = vbyes then
'messagebox.show(" running")
dim doc as partdocument = thisdoc.document
dim cd as partcomponentdefinition = doc.componentdefinition
if cd.features.extrudefeatures.count > 0 then
'messagebox.show("find extrusions")
dim extrusion1 as extrudefeature = cd.features.extrudefeatures.item(1)
iproperties.value("custom", "measuring_quantity") = extrusion1.featuredimensions.item(1). parameter.value/100
♪
'messagebox.show("there are no extrusions")
end if
end if
Thank you.