...
SVG files, if created in a tool like Creo Illustrate or 3DViaComposer, may contain xml based information which can be used to identify hotspots at import. The below strategies are used when identifying hotspots in Signifikant. It is also possible to make entire parts highlight when hovvering, provided that SVG follow a defined structure and a profile setting is added to support this.
Strategy 1 - recommended strategy
...
Method | Description |
---|---|
Creo standard | Signifikant will take the number in the <title> tag after <g id="xxx" class="part part_"> as part number (persistent id) and the text as pos. |
Line break | In case there is a line break in the title, Signifikant will use the number before the line break as part number (persistent id) and the text as pos. |
Comma | In case there is a comma, Signifikant will use the number before the comma (“,”) as part number (persistent id) and the text as pos. |
PRT | In case there is a file name with ending ".prt", Signifikant will use the number before the file ending (“.PRT”) as part number (persistent id) and the text as pos. |
Make entire parts highlight when hoovering
Info | ||
---|---|---|
| ||
This function is available from version 4.3.1 and later. |
It is also possible to make entire parts highlight when hovvering, provided that SVG follow a defined structure and a profile setting is added to support this. To enable part hoovering effect add the below to profile.config.
<HotSpotSettings hover-class="hover" selected-class="selected">
<Selector selector=".callout" identity-pattern=".callout_{0}"/>
<Selector selector=".hotspot" identity-pattern=".hotspot_{0}"/>
<Selector selector=".part" identity-pattern=".part_{0}" part-number-pattern=".partnumber_{0}"/>
</HotSpotSettings>
selector is an jquery / css path to identify the SVG element as an hotspot
identity-pattern is a pattern to get the identity from the SVG element. Formats like this is supported: .xxx{0}...
part-number-pattern is a pattern to read the part number from the SVG element
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...