Push/Pull Custom Props with MS Access
Push/Pull Custom Props with MS Access
(OP)
I am trying to Push/Pull Custom Props with MS Access...does anyone have any suggestions or sample code to get me started? I looked at the SW help file for AddCustomInfo3, I just don't understand how to link the 2 programs. I have been trying to put the code in Access and push the info into SW (file is open)...no luck! I have built quite a few database but have never linked to another program (like SW).
TIA,
DT
TIA,
DT






RE: Push/Pull Custom Props with MS Access
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.ActiveDoc
Note: this was written in SW2001+ and unfortunately I haven't written anything in 2003 (i.e. there might be a better way).
RE: Push/Pull Custom Props with MS Access
Bring SW properties into VB variables using modeldoc2.customino(). Then set the Access database properties from the VB variable. The reverse for Access to SW.
Also important: AddCustomInfo does not overwrite existing properties. If necessary to overwrite, follow up with modeldoc.CustomInfo().
RE: Push/Pull Custom Props with MS Access
Stick arond a day or two and you will see a post regarding a macro that copies custom info that I will be posting for general distribution.
RE: Push/Pull Custom Props with MS Access