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

solidworks document manager api 2015

  • Thread starter Thread starter weldox
  • Start date Start date

weldox

Guest
Hey, guys, I'm in a pretty weird situation. .

I have sw2015 and would need the "solidworks document manager api 2015" in x64 or x86 (I must test which one is fine).
the fact is that I have remained quite misguided by the fact that the "solidworks customer portal" does not allow me to download this file that, in my opinion, should be totally free.

My subscription apparently expired, and the document manager should be in downloads... section to which I cannot access.

I wanted to ask some of you if you could kindly download me and pass the two files (x64 and x86)...otherwise I don't know where to find them and how to do it.

ps: on the other hand I found the link to download bees 2018 but I need 2015.

Thank you so much!
maurials
 
I found the file in the second dvd but cannot install the document manager properly.

However, I think there is no problem using a document manager in the last version.
I installed "solidworks document manager api 2018" on all pcs (environment windows 7 64 bit).

on one pc I installed solidworks 2015.

on other pcs I have a database access which contains a table with different fields (committee, number of pieces, material, link drawing,.. ).
with vba, on the click of the field "hyperlink", from any pc I open through document manager my design and I go to change my properties and save the document.
My code is the following (may also be useful to someone using access and solidworks):

private sub linkdisegnosc_click()

if isnull(linkdisegnosc) = false then

const slicensekey as string = "xxxxxxx" specified your license key

dim sdocfilename as string
dim swdoc as swdmdocument12
dim swdm as swdmapplication
dim mopenerrors as swdmdocumentopenerror
dim objclassfac as swdmclassfactory
dim strdocfilename as string
dim ndoctype as long
dim swcfgmgr as swdocumentmgr.swdmconfigurationmgr
dim counterproperties as string
dim nnbrprops as integer
dim j as long
dim retval as long
dim vpropnames as variant
dim formatsheet as string

sdocfilename = strreverse(left(strreverse(me.linkdisegnosc), instr(strreverse(me.linkdisegnosc), "#") - 1))

' determine type of solidworks file based on filename extension

if instr(lcase(sdocfilename), "sldprt") > 0 then

ndoctype = swdmdocumentpart

elseif instr(sdocfilename), "sldasm") > 0 then

ndoctype = swdmdocumentassembly

elseif instr(lcase(sdocfilename), "slddrw") > 0 then

ndoctype = swdmdocumentdrawing



' probably not a solidworks file

ndoctype = swdmdocumentunknown

'so cannot open

exit sub

end if


set objclassfac = createobject("swdocumentmgr.swdmclassfactory")set swdm = objclassfac.getapplication(slicensekey)
set swdoc = swdm.getdocument(sdocfilename, ndoctype, false, mopenerrors)

sheet format = swdoc.getcustomproperty("swformatsize", swdmcustominfotext)

nnbrprops = nz(swdoc.getcustompropertycount, 0)
vpropnames = swdoc.getcustompropertynames
for j = 0 to nnbrprops - 1
retval = swdoc.deletecustomproperty(vpropnames(j))


'msgbox sheet format

swdoc.addcustomproperty "swformatsize", swdmcustominfotext, sheet
swdoc.addcustomproperty "commise", swdmcustominfotext, ""
swdoc.addcustomproperty "subcommittee", swdmcustominfotext, me.idssubcommittee
swdoc.addcustomproperty "title", swdmcustominfotext, me.descriptionsc
swdoc.addcustomproperty "controlled", swdmcustominfotext, ""
swdoc.addcustomproperty "author", swdmcustominfotext, "hard hardware"
swdoc.addcustomproperty "npezzi", swdmcustominfonumber, me.quantitàsc
dim mat, standardrif, codespec, numerospec, tipogr, notamat as string
standardrif = dlookup("standardreference", "materials", "id = forms!subcommitted!materialesc")
codespec = dlookup("specific code", "materials", "id = forms!subcommitted!materialesc")
numberspec = dlookup("numberspecific", "materials", "id = forms!subcommitted!materialesc")
typegr = dlookup("tipogrado", "materials", "id = forms!subcommitted!materialesc")
Notemat = me.notematerialesc
mat = trim(standardrif & " & codespec & " & numerospec & " " & tipogr & " & notemat)
swdoc.addcustomproperty "material", swdmcustominfotext, replace(mat, ", ")

swdoc.save
swdoc.closedoc
end if

end

then having clicked on the hyperlink, just finish this routine, opens my file (published as from previous operation).
if I am using the pc with solidworks opens it with solidworks of course, otherwise other pcs use edrawings.

this thing worked until a certain period of time on all pcs...from a few months instead this routine only works on the pc with solidworks while on the other pcs the document manager gives me error "429" - the activex component is not able to create the object....on the line I highlighted in bold.

I blamed the fact that, having sw2015, everything originated from an incompatibility of later version document managers...but, as mentioned, on the pc with sw also the document manager 2018 works well and not from the error to the above line.

Can someone help me? This thing swallows me not little production....
Thank you so much!
maurials
 
after some attempts I managed!
I write below, so as to complete the discussion in case it serves someone.


drastic solution:

after trying in vain to install sw document manager 2018 on all pcs, I copied shamefully contained from pc with solidworks of folders:

c:\program files\common files\solidworks shared\

and

c:\program files (x86)\common files\solidworks shared\

in each pc without sw installed.

then I manually recorded the libraries through "cmd":

regsvr32 "c:\program files\common files\solidworks shared\swdocumentmgr.dll"

regsvr32 "c:\program files (x86)\common files\solidworks shared\swdocumentmgr.dll"

Now it doesn't give me any more error in the above line. . .
probably was a simple problem of unregistered libraries.
 
after some attempts I managed!
I write below, so as to complete the discussion in case it serves someone.


drastic solution:

after trying in vain to install sw document manager 2018 on all pcs, I copied shamefully contained from pc with solidworks of folders:

c:\program files\common files\solidworks shared\

and

c:\program files (x86)\common files\solidworks shared\

in each pc without sw installed.

then I manually recorded the libraries through "cmd":

regsvr32 "c:\program files\common files\solidworks shared\swdocumentmgr.dll"

regsvr32 "c:\program files (x86)\common files\solidworks shared\swdocumentmgr.dll"

Now it doesn't give me any more error in the above line. . .
probably was a simple problem of unregistered libraries.
Hello weldox, I'm sorry, but I'm just reading you now.
libraries ("dll") must always be registered otherwise for the operating system are nonexistent.
in the manual bees is specified that from 2015 onwards the library swdocumentmgr opens only the version files aligned to sw or precedence (with the library of 2017 do not open those of 2018 to understand, but open from 2017 down).
so every year you are\we are obliged to request the updated license code of the swdocumentmgr if we install the new version of solidworks.

thanks to the code
 
perfect, thank you very much for the delucidation.
so I, who am still in sw2015, have no problem using the next document manager. great...my doubt was that of having to keep in line with the version also the library swdocumentmgr.

something must have happened during the installation as it should have recorded the library through the setup of the .msi file.

in any case I write a note to always manually check the registration.

Thank you very much
always precious as usual
Have a good day!
 

Forum statistics

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

Members online

No members online now.
Back
Top