Zitat:
Original erstellt von yajoro9447:
I have another question: how can we write or customize the tree structure in the Structure Browser?
Is there any LISP command or API function that allows creating or modifying the tree (nodes/levels) similar to how the columns are defined?If there is an example or documentation for creating a custom tree in the browser
yes + yes + yes...
The dummy browser example is still available:
https://support.ptc.com/help/creo_elements_direct/r20.8.0.0/advanced_documentation/integration_kit/examples/gbrowser_test_lsp.html
In general you should read:
https://support.ptc.com/help/creo_elements_direct/r20.8.0.0/advanced_documentation/integration_kit/reference/gbrowser.html
All the relevant functions are explained in there.
Those are the major functions:
- sd-create-browser-tree -- the tree holds the data
- sd-create-graphical-browser -- the browser is just the viewable represantation of the tree
The graphical-browser is normally only created once, same as the tree. But tree contents is rebuild from time to time (e.g. when your data Strucure is changing)
For a first exercise I would skip all the 'sd-browser-define-table' stuff in the example. And skip drag'n drop in the beginning.
Have just a browser tree.. fill it using sd-create-BrowserNode function, add very few data to those to have something to feed your first interrogator's
* Town
** MainStreet
*** building-01
*** building-02
*** building-03a
*** building-03b
** Station-Street
*** building-02
*** building-04a
*** building-06b
** Cemetry-Street
*** building-01
*** building-02
*** garden
**** cell A
**** cell B
**** cell C
now you can already fiddle with icons (means real images) for those nodes: 🏙️ -- 🛣️ -- 🏡 🏚️ -- ☘️ -- 🪦
Later on good to know as well are:
- sd-query-browser
- sd-browser-exec-cmd
- for those you need the browser's name: sd-list-graphical-browsers
------------------
● Firefox ESR ● Java Forum Stuttgart JUGS ● OSD Hilfeseite (de) / help page (en) ● NotePad++ ● BuFDi ●
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP