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

custom property pass by the table

  • Thread starter Thread starter dunga77
  • Start date Start date

dunga77

Guest
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?

thanks early
 
hi, it is an argument already treated
 
Bye. Unfortunately I did not express myself well.
to me to fish the hyperperty of 3d to use it in the ilogic of his table
 
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) = "



ilogicvb.updatewhendone = true
inventorvb.documentupdate()

'------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
'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.
 

Forum statistics

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

Members online

No members online now.
Back
Top