• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

illogical extrusion

  • Thread starter Thread starter Gianlucagiangian
  • Start date Start date

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.
 

Attachments

  • Immagine 2021-11-29 155530.webp
    Immagine 2021-11-29 155530.webp
    57.8 KB · Views: 11

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
ciao
Back
Top