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

report explaining rule on table idw

  • Thread starter Thread starter cen82
  • Start date Start date

cen82

Guest
Hello, everyone. I need to report the explanation rule associated with the model, at the table. this because I created the various bending rules with indicated the bending quarry in the name of the rule and it would be very convenient if the name of the rule appeared on the table idw.

Can anyone help me?

I think the process is like this:

1)create custom property in the model.
2)write such a thing =<sheet metal="" rule="">3) in idw file recall custom property

My problem is what to write instead of "sheet metal rule"

thanks to all</sheet>Cattura.webp
 
Hi.
the thing works and I use it too

in sheet 3d part I created a custom iporperties (example splamiera) whose value is: =<sheet metal="" rule="">then on the cartiglio, recall the custom iproperties of the model <splamiera>Hi.</splamiera></sheet>
 
However, in this case, it tells you, if you take an example of the image I posted, "round corner d5". I need to recover "flight 20/10 v12"
this to have in the table information of the bending quarry, in this case "v12"
 
Sorry... I was distracted

I found only this, but the factor k reads the numerical value and not the name of the style!

'Consent to read the active sheet rule.
currentstyleparameter=sheetmetal.getactivestyle()
messagebox.show(currentstyleparameter, "title")
'Consent to read the active factork (a numerical value).
kfactorparameter=sheetmetal.activekfactor
messagebox.show(kfactorparameter, "title")
 
prova questo ilogic:

opartdoc = thisdoc.document
dim osheetmetalcompdef as sheetmetalcomponentdefinition
osheetmetalcompdef = opartdoc.componentdefinition
dim ostyle as sheetmetalstyle
for each ostyle in osheetmetalcompdef.sheetmetalstyles
if ostyle.inuse then
rule =ostyle.unfoldmethod.name
end if
next ostyle
custompropertyset = opartdoc.propertysets.item("inventor user defined properties")
try
iproperties.value("custom", "unfoldrule") = rule
catch
custompropertyset.add("", "unfoldrule") = rule
end try


ti crea una iporperties personalizzata chiamata "unfoldrule"
 
Thank you very much. It works almost well. the defect is that it reports the default explaining rule associated with the sheet rule, when for needs change the explaining rule, does not report the active one, but the default one... .
 
modified so it should work
Code:
opartdoc = thisdoc.document
dim osheetmetalcompdef as sheetmetalcomponentdefinition
osheetmetalcompdef = opartdoc.componentdefinition

rule =osheetmetalcompdef.unfoldmethod.name

custompropertyset = opartdoc.propertysets.item("inventor user defined properties")
try
iproperties.value("custom", "unfoldrule") = rule
catch
custompropertyset.add("", "unfoldrule") = rule
end try
 

Forum statistics

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

Members online

No members online now.
Back
Top