2.2.8.4. Common hints for Attribute Mapping sections

CadDocumentAttributes

Under "CadDocumentAttributes" you can find information that is transferred to the respective CAD program when exporting from PARTsolutions. Some of these values are transferred directly, others are dynamically queried via function calls, such as the catalog manufacturer (SUPPLIER) [first line in the following figure].

Example from ifsolidworks.cfg

Example from ifsolidworks.cfg

[CadDocumentAttributes]

Valid syntax for attributes is:

CopyFrom

The Section "CopyFrom" also accepts complete statements .. the %ATTRNAME% is reduced by the current var

CopyFrom..=_FORMAT_0("MYPREFIX_HERE<ATTR-(%ATTRNAME%)>-MYPOST_HERE").value()

In addition, the "CopyFrom" may contain the following filter/flags:

Sequence and priority

Sometimes one and the same variable can have different values, depending on the context of the part. This means that multiple entries are also possible.

What happens if several assignments apply?

The first applicable entry (we think of the return value of functions) is taken. So if you enter a default value first without any checks, it will always be taken. See the last line in the following illustration. The following assignments of these variables are never executed by the program.

[Note]Note

Always list from the specific assignment of the attribute to the more general one up to the assignment of the default value!