Skip to main content
11-Garnet
August 11, 2011
Question

Drawing Program error

  • August 11, 2011
  • 1 reply
  • 2133 views

Hi all,

I have created the following drawing program to relate part parameters to drawing.

PRODUCT:D=PRODUCT:0
REPLACES:D=REPLACES:0
REFERENCE_DRG:D=REFERENCE_DRG:0
MATERIAL:D=MATERIAL:0
SURFACE_PROTECTION:D=SURFACE_PROTECTION:0
WEIGHT:D=WEIGHT:0
OPP_HAND_DRG:D=OPP_HAND_DRG:0
REMARKS:D=REMARKS:0
PROJECT_NAME:D=PROJECT_NAME:0
DESIGN_GRP:D=DESIGN_GRP:0

DESCRIPTION:D=DESCRIPTION:0

On running this on the drawing of first part, it relates the parameters properly.

But after starting a new drawing for a new part, it does not relate at all.

Error displayed is "Program contains error"

Pl help


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

1 reply

10-Marble
August 17, 2011

Hi Tushar,

There is no need to use a drawing program to relate part parameters to the drawing. You just fill in e.g. &PRODUCT in the format or note and the drawing recognizes the model parameter value. If you fill in &PRODUCT:D it will display the contents of the drawing paramet "PRODUCT".

If you have a multiple model drawing, make sure the correct model is the active model during the creation of the note.

The extension ":0" refers to the session ID and depends on the order of bringing the models in session.That is probably why the program returns an error, it can not find the parameter &PRODUCT:0 in the drawing model since the session ID is incorrect.

The sessionID can be found throug assembly mode (relations, show, session ID, name; select name from session). The model you select to view the session ID does not have to be part of the assembly.

hope this helps.

greetings,

Patrick Brulot