hi, I need to pass a custom property (cycle) from the side to the table, to create the pdf print that will be automatically imported into the management.
Can anyone help me?
Ciao a tutti, ho cercato sul form e ho seguito le istruzioni e sono riuscito ad importare un cartiglio da autocad ad inventor. Ora il mio problema nasce nel far compilare automaticamente al programma i campi che voglio in questo cartiglio. Mi spiego: nel mio cartiglio ho il campo progettista dis...
Hi.
That's what I thought (in the hope of getting your problem.
Good job
'------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
dim opendoc as document
dim docfile as document
docfile = thisdoc.modeldocument
dim fnamepos as long
fnamepos = instrrev(docfile.fullfilename, "\", -1)
dim docfname as string
docfname_3d = right(docfile.fullfilename, len(docfile.fullfilename) - fnamepos)
'checks the presence of the custom iproperties 'cycle'
iprop_da_cercare="cycle"
♪
value_custom_ip = iproperties.value(docfname_3d,"custom", iprop_da_cercare)
'Set the variable to share
sharedvariable("value_custom_ip_condivisa") = value_custom_ip
catch if you don't find it then creates it empty:
iproperties.value(docfname_3d, "custom", iprop_da_cercare) = "
'------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
'reads the shared variable
'This line is to put in the other file
'valore_custom_ip = sharedvariable('value_custom_ip_condivisa')
'------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hi eponymous
Thanks for the answer. You helped me a lot. I saw it working (although that's not what I have to do).
As soon as I finish, I'll attach the full code of the rule I needed.
Thanks again.