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

bees properties slddrw

  • Thread starter Thread starter GHIZMO
  • Start date Start date

GHIZMO

Guest
Would someone please tell me the essential lines of code to write custom properties in a slddrw board, maybe fishing them from a txt file or excel?

Thank you.
 
Would someone please tell me the essential lines of code to write custom properties in a slddrw board, maybe fishing them from a txt file or excel?

Thank you.
depends on the installation, but usually the path is similar to this:c:\documents and settings\all users\dati applicazioni\solidworks\solidworks 2009\lang\italian\properties.txtchange the file as it serves you (or create another file) and then check the path in the card file location > custom properties files in system options. .

If I understood what you were asking.

greetings
Mar
 
Would someone please tell me the essential lines of code to write custom properties in a slddrw board, maybe fishing them from a txt file or excel?

Thank you.
you do not want to use bees, try to customize the properties with tab builder.
 
found...., I answer myself:

sub main()
set swapp = createobject("sldworks.application")
set part = swapp.activedoc
dim myprop (1, 3) as string
'property names
myprop(0, 0) = "lastsavedby"
myprop(0, 1) = "createdon"
myprop(0, 2) = "revision"
myprop(0, 3) = "material"
'property values
myprop(1, 0) = "$prp:" & chr(34) & "sw-last saved by" & chr(34)
myprop(1, 1) = date
myprop(1, 2) = "a"
myprop(1, 3) = "a36 steel"
dim m as integer
for m = 0 to 3
retval = part.addcustominfo3("", myprop(0, m), 30, _
myprop(1, m)
next m
end

However if I could also have the code to connect to an external file........ Better!

I already know all the roads... but I have to connect to data already available.

Hi.
 

Forum statistics

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

Members online

No members online now.
Back
Top