<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creo Elements annotation Windchill Name in drawing browser in Modeling</title>
    <link>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1043689#M1382</link>
    <description>&lt;P&gt;Yes, I still want to copy the Windchill number instead of the file name.&lt;BR /&gt;It is not impacting our business in any meaningful way.&amp;nbsp;&lt;BR /&gt;But it would be nice to copy the drawing number to the clipboard.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Nov 2025 15:30:18 GMT</pubDate>
    <dc:creator>Gerard_Moba</dc:creator>
    <dc:date>2025-11-17T15:30:18Z</dc:date>
    <item>
      <title>Creo Elements annotation Windchill Name in drawing browser</title>
      <link>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1009633#M1303</link>
      <description>&lt;P&gt;I went from Creo Elements 20.4 with Workgroup manager 12 to Creo Elements 20.6.2 with workgroup manager 13.0.2.1&lt;/P&gt;&lt;P&gt;In the drawing browser, the name of the drawing used to be the Windchill file name, and now it is the Windchill name.&lt;BR /&gt;Is it possible to change it to the windchill number or file name?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gerard_Moba_0-1744115254543.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/121293i26D287441C8EA8FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gerard_Moba_0-1744115254543.png" alt="Gerard_Moba_0-1744115254543.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I used to use it in a lisp, for example:&lt;/P&gt;&lt;P&gt;display (oli::sd-am-inq-drawing-no)&lt;BR /&gt;But now I get a different value then I used to.&lt;BR /&gt;Also I can't find how to get the windchill attributes (like PTC_WM_NUMBER) of the drawing in lisp.&lt;BR /&gt;I tried lot's of things but I can't find it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 13:21:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1009633#M1303</guid>
      <dc:creator>Gerard_Moba</dc:creator>
      <dc:date>2025-04-08T13:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creo Elements annotation Windchill Name in drawing browser</title>
      <link>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1009767#M1305</link>
      <description>&lt;P&gt;It seems that the display of the file name was a bug and the name should be shown in Creo Elements annotation:&lt;BR /&gt;&lt;A title="PTC Support article CS412824" href="https://www.ptc.com/en/support/article/CS412824" target="_blank" rel="noopener"&gt;PTC Support article CS412824&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="Release note Workgroup manager &amp;quot;DisplayNameInAnnotation&amp;quot;" href="https://support.ptc.com/help/windchill/wwgm_release_notes/en/#page/Windchill_Help_Center/NewandChanged_WWGM_13_0_0_1_DisplayNameInAnnotation.html#" target="_blank" rel="noopener"&gt;Release note Workgroup manager "DisplayNameInAnnotation"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In that case my question is more focused on the second part.&lt;BR /&gt;I had this code in sd_avail_cmds.cmd:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(:Application "Annotation")

(:Group "Custom" :title "Custom")

("Copy drawing number to clipboard"
 :title       "Copy drawing number to clipboard"
 :action      "(setf Part_number (oli::sd-am-inq-drawing-no))
(unless (equal (search \".\" Part_number) nil)
(setf Part_number_reverse (reverse Part_number))
(setf Part_number (reverse (subseq Part_number_reverse (+ (search \".\" Part_number_reverse) 1) (length (reverse Part_number)) ))))
(sd-sys-exec (format nil \"echo ~a|clip\" Part_number))"
 :description "Drawing number to clipboard"
 :image       "SolidDesigner/Edit/copy" 
 :ui-behavior :DEFAULT)&lt;/LI-CODE&gt;&lt;P&gt;It lets me copy the drawing number to the clipboard so I can paste it and search it easily in my web browser where I have multiple Windchill tabs open. Or paste it in a mail or something. (for us the drawing number is the same as the file name)&lt;BR /&gt;But now the name is copied to the clipboard.&lt;BR /&gt;&lt;BR /&gt;I tried a few things but can't get it to work&lt;BR /&gt;This displays the number of the current model:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;display (oli::sd-uwgm-inq-system-attribute (sd-inq-curr-part) "PTC_WM_NUMBER")&lt;/LI-CODE&gt;&lt;P&gt;So I thought this should display the number of the current drawing:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;display (oli::sd-uwgm-inq-system-attribute (sd-am-inq-curr-sheet) "PTC_WM_NUMBER")&lt;/LI-CODE&gt;&lt;P&gt;But the sheet is not the same as the drawing.&lt;BR /&gt;How do I select the drawing? or at least, how do I get the PTC_WM_NUMBER of the drawing?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 06:54:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1009767#M1305</guid>
      <dc:creator>Gerard_Moba</dc:creator>
      <dc:date>2025-04-09T06:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creo Elements annotation Windchill Name in drawing browser</title>
      <link>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1010766#M1310</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/588595"&gt;@Gerard_Moba&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.&lt;BR /&gt;&lt;BR /&gt;Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 08:23:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1010766#M1310</guid>
      <dc:creator>Catalina</dc:creator>
      <dc:date>2025-04-15T08:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creo Elements annotation Windchill Name in drawing browser</title>
      <link>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1011152#M1313</link>
      <description>&lt;P&gt;Your 'reverse' approach looked funny to me. But you've found a solution. &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Here are 2 other possibilities:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;;; looking for the last dot by using :from-end option:
(let* ((Part_number (oli::sd-am-inq-drawing-no)) (last-dot (position #\. Part_number :from-end T)))
  (uib::WIN-COPY-STRING-TO-CLIPBOARD (subseq Part_Number 0 last-dot)))
 
;; assuming .mi is the extension
(uib::WIN-COPY-STRING-TO-CLIPBOARD (oli::sd-string-replace (oli::sd-am-inq-drawing-no) ".mi" ""))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no support for Annotation by PTC for the Integration Kit functions sd-uwgm-set/inq-*&amp;nbsp; as mentioned in the &lt;A href="https://support.ptc.com/help/creo_elements_direct/r20.7.0.0/advanced_documentation/integration_kit/reference/wgm_attribute.html" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;.&amp;nbsp; Again: there is NONE.&lt;BR /&gt;&lt;BR /&gt;Those function can only handle sel-items of 3D Objects like parts, assemblies, workplanes etc. .&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 18:37:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1011152#M1313</guid>
      <dc:creator>der_Wolfgang</dc:creator>
      <dc:date>2025-04-16T18:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creo Elements annotation Windchill Name in drawing browser</title>
      <link>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1041169#M1361</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Also I can't find how to get the windchill attributes (like PTC_WM_NUMBER) of the drawing in lisp.&lt;BR /&gt;I tried lot's of things but I can't find it.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is this part still an open sub-issue for you?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 17:07:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1041169#M1361</guid>
      <dc:creator>der_Wolfgang</dc:creator>
      <dc:date>2025-10-31T17:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creo Elements annotation Windchill Name in drawing browser</title>
      <link>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1043689#M1382</link>
      <description>&lt;P&gt;Yes, I still want to copy the Windchill number instead of the file name.&lt;BR /&gt;It is not impacting our business in any meaningful way.&amp;nbsp;&lt;BR /&gt;But it would be nice to copy the drawing number to the clipboard.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 15:30:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1043689#M1382</guid>
      <dc:creator>Gerard_Moba</dc:creator>
      <dc:date>2025-11-17T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creo Elements annotation Windchill Name in drawing browser</title>
      <link>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1043873#M1383</link>
      <description>&lt;P&gt;Once the drawing is really loaded from Windchill, we can pick up the 'text references' as source:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Description:  get windchill drawing information using text references
;;
;; Author:       der_Wolfgang@forum@cad.de
;; Created:      Tue Sep  2 19:04:24 CEST 2025
;; Modified:     Tue Nov 18 16:45:26 CET 2025  der_Wolfgang@forum@cad.de
;; SD-Version:   developed with PE90,
;; reference:    https://community.ptc.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1043689
;;
;; (C) Copyright 2025 der_Wolfgang@forum@cad.de, all rights reserved.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(in-package :am-uwgm)
(use-package :oli)

(defun am-uwgm-inq-drawing-number ()
  ; get windchill drawing number by looking into Annotation text references
  (let ((tr-values (sd-execute-annotator-function :fnc "Docu_inq_tr_types 'WTtr'")))
    (cadr (find "PTC_WM_NUMBER" tr-values :key 'car :test 'equal))
   ))

(uib::WIN-COPY-STRING-TO-CLIPBOARD (am-uwgm-inq-drawing-number))&lt;/LI-CODE&gt;&lt;P&gt;The last line is is the part you might wanna create an available command of ..&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 16:01:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1043873#M1383</guid>
      <dc:creator>der_Wolfgang</dc:creator>
      <dc:date>2025-11-18T16:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creo Elements annotation Windchill Name in drawing browser</title>
      <link>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1050810#M1396</link>
      <description>&lt;P&gt;Thanks that works!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 11:09:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Modeling/Creo-Elements-annotation-Windchill-Name-in-drawing-browser/m-p/1050810#M1396</guid>
      <dc:creator>Gerard_Moba</dc:creator>
      <dc:date>2026-01-14T11:09:10Z</dc:date>
    </item>
  </channel>
</rss>

