Opened 15 years ago
Closed 15 years ago
#1353 closed enhancement (fixed)
Symbol Browser / Selector
Reported by: | jng | Owned by: | jng |
---|---|---|---|
Priority: | medium | Milestone: | Maestro-3.0 |
Component: | Maestro | Version: | |
Severity: | major | Keywords: | |
Cc: | External ID: |
Description
Through some trial and error, I have discovered that we can actually inspect and view symbols from a SymbolLibrary by using the Drawing Service APIs.
SymbolLibrary resources use a DWF file (symbols.dwf) as the underlying data store, the process for enumerating symbols in a SymbolLibrary is simply:
- Create a temp Drawing Source pointing to this DWF file
- Invoke ENUMERATEDRAWINGSECTIONS on the drawing source. Each section returned represents one symbol from the symbol library.
- Invoke ENUMERATEDRAWINGSECTIONRESOURCES on each section of the previous result
- To extract the symbol image, invoke GETDRAWINGSECTIONRESOURCE on the href of the previous result whose role is "thumbnail"
Change History (3)
comment:1 by , 15 years ago
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I'd like to give you a nice summary of how Studio does this, but after looking at the code, there is a lot of stuff going on. It looks like a .net wrapper was created around the DWF toolkit and this is used to manipulate the DWF file. Studio does not use the Drawing Service APIs to do any of this.