link custom props to drawings
link custom props to drawings
(OP)
How can I link the custom props of parts/assemblies to the custom props of a drawing.
eg part property 'PartNum' link to drawing property 'PartNum'
I know how to display the part/assembly props in a drawing, but I cant see how to then link that data into a drawing property.
eg part property 'PartNum' link to drawing property 'PartNum'
I know how to display the part/assembly props in a drawing, but I cant see how to then link that data into a drawing property.






RE: link custom props to drawings
Helpful SW websites FAQ559-520
How to get answers FAQ559-1091
RE: link custom props to drawings
In your drawing, right-click the note you want to link to the model file property, and select “Properties…” from the pop-up menu (near the bottom). This opens the Properties window.
On the right of the Properties window are 2 icons—select the one that has the hand pointing to a page with a chain link in the lower right. This icon opens the “Link To Property” window.
In the Link To Property window click the “Model in view specified in sheet properties” button. This opens up a list of the properties in your model. Select one and that links the note to that model property.
Note that the list of properties is reading the properties in the model file, so you need to define the properties in the model first.
RE: link custom props to drawings
I already know how to display the models customs properties in a drawing (as shown be the previous answers).
What I would like to do is copy or push that data from the model into a custom property setup in the drawing sheet template.
From what I can see this may need to be done with a macrofeature? Can anyone help us there?
Thanks.
RE: link custom props to drawings
Did I read you right?
RE: link custom props to drawings
See FAQ559-1100 or FAQ559-1177.
Helpful SW websites FAQ559-520
How to get answers to your SW questions FAQ559-1091
RE: link custom props to drawings
The custom property editor doesn't show the value of the link as you might expect, and I'm not sure there's any value to doing this, but maybe someone can come up with something.
Jason
UG NX2.02.2 on Win2000 SP3
SolidWorks 2005 SP5.0 on WinXP SP2
SolidWorks 2006 SP1.0 on WinXP SP2
RE: link custom props to drawings
RE: link custom props to drawings
The best way to do this is to use a VBA form to enter/modify custom properties instead of using the SWX interface. This is very thoroughly discussed in the API help and there are numerous free custom properties routines available. You will need to modify one of these to accomplish what you are after. Then, you can enter properties as normal in part and assembly files, but when a drawing file is active your routine needs to:
1) get the first drawing view
2) activate the referenced document
3) get the properties you want to transfer and store them in strings
4) return to the drawing document and update/create the corresponding custom properties in the drawing
In this way, model custom properties can drive drawing custom properties without manual retyping. A macro will do it and is a better solution than a macro feature.
RE: link custom props to drawings
Can you recommend a custom properties download that has a easy-to-use interface for someone inexperienced in API? I have been trying to accomplish what you have described for awhile. Haven't spent a whole lot of time on it yet.
Thx
RE: link custom props to drawings
We do not have a dedicated PDM so I was thinking of linking the model properties to the drawing's properties, so that they are visible using windows explorer. Also I was thinking of using the data to auto populate the design journal.doc in the drawing file. A limitation I have found with the design journal if used in the model is that it is not configuration specific, and as we use configurations for similar parts then the design journal does not work for us. As each part or config has a seperate drawing file then I think I can get the design journal to work for us.
Seems like some programming is needed.
Thanks everyone for their help.
RE: link custom props to drawings
Unless you have a large number of users, the best solution is a standalone macro with a simple userform, all done in VBA. Use combo boxes to hold lists that the user can choose from and text boxes for text entry. When the routine first runs, you can test to see what type of document is open and then enable/disable fields as required to ensure that the correct properties are entered for that document type.
When the model library was active on the SolidWorks web site there was an excellent example in the API section. It was a very basic form to enter custom properties without any unnecessary extra features. This example is no longer available on the SWX site, but maybe you can email API support to see if they still have it. This would be a far easier starting point to developing your own routine. You would just have to customize the property names to your standards and add the code to copy the required properties from the part to the drawing file.
RE: link custom props to drawings
http://hom
You run it from a drawing and it lets you copy the Number and Description properties between a model within the drawing and the drawing.
Brief instructions:
The dropdown to let you select between different models within the drawing.
The radio button lets you select between interacting with the model’s properties or the specific configuration’s properties.
The arrows transfer the number, description or both between the drawing and the model.
You are welcome to try it. I do not know how much luck you would have modifying it to interact with the design journal, and unfortunately I have not gone back through and commented the source code.
I found the source code for PropertyEditorSpec at ht