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

creation of a form for compiling revisions in a paper mill

  • Thread starter Thread starter sbronzo79
  • Start date Start date

sbronzo79

Guest
I am trying to create a form that will allow me to fill out the revisions within the paper mill.

I press that to the various components of the revision I created a custom property.

how do I now tell him through vb to write in that determined property what I write inside the text box of if
 
is not in itself; I think it intends to make a program with visual basic with graphical interface. the "pages" of the program are called form. and the boxes where you write are called text box.
 
Last edited by a moderator:
you must connect to the property object of the model, search for the group "custom" and then the custom property created.
Code:
set objpar = objapp.activedocument
set objprops = objpar.properties.item("custom")
objprops.item("nome proprieta pers").value = textbox1.text
to adapt to your needs of course.

Hi.
 
sub addfileprop(file, name, value, optional tab = "custom")

dim objprops as object
dim objprop as object

set objprops = createobject("solidedge.fileproperties")
call objprops.open(file)
set objprop = objprops(schedule)
call objprop.add(name, value)
call objprops.save

set objprops = nothing
set objprop = nothing

end

by gianluca vespignani

I also made a macro that reads from the db and reloads the properties. we have a pdm but I had to update/add on file vidimati descriptions in English that in turn I had imported from the corporate management

Hi.
 
sub addfileprop(file, name, value, optional tab = "custom")

dim objprops as object
dim objprop as object

set objprops = createobject("solidedge.fileproperties")
call objprops.open(file)
set objprop = objprops(schedule)
call objprop.add(name, value)
call objprops.save

set objprops = nothing
set objprop = nothing

end

by gianluca vespignani

I also made a macro that reads from the db and reloads the properties. we have a pdm but I had to update/add on file vidimati descriptions in English that in turn I had imported from the corporate management

Hi.
 
is a sub routine that you can recall to add/overwrite a filepropriety on any type of solidedge file:

call addfileprop("c:\prova.par", "mypropriety", "my value")

The code seems pretty simple
 

Forum statistics

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

Members online

No members online now.
Back
Top