Jump to content

Jiajing

Member
  • Posts

    75
  • Joined

  • Last visited

Reputation

7 Neutral

Personal Information

  • Location
    United States

Recent Profile Visitors

1,314 profile views
  1. New stuff everyday. I had a python based script running just fine on 2022. once I am on 2023 SP3, the radio button is strange for me. It supposes to only allow me to select one radio botton, however I can select multiple ones for some reason. also that only happens on WINDOWS , MAC works just fine. I am on WINDOWS 11. Dia Builder test file.vwx
  2. @Boh It is , thank you. Interesting thing is when using python to fetch that value via scripting, the criteria is GetRField(h,"Callout","__NoteDescrip") it is ""__NoteDescrip"', not " Text"
  3. @Pat Stanford Thank you. General Notes is really different than Callout. GN_Hand=vs.FSActLayer(); PG_Hand= vs.GetCustomObjectProfileGroup(GN_Hand); h=vs.FInGroup(PG_Hand); Text = vs.GetRField(h,"NNA_GeneralNotes","Text")
  4. @Boh what is the criteria to get access to the TEXT in call out, I am having hard time to find that on worksheet
  5. What is the criteria to get access to discription (the text) of a general notes. Following seems doesn't work GetRField(h,"General Notes","__NoteDescrip")
  6. Even just check if a data viz exsit or not? @Pat Stanford
  7. Is there a way I can check if Data Viz is active in doc and if it doesn't, make it active? @The Hamma @Pat Stanford
  8. Here is the script to remove legends from all viewports ##This script remove data visualization legend from all view ports on all sheet layers ## Created by Jiajing Qi, Tested: VWX2023 SP1, 01/03/2023 ## Use it on your own risk import vs; global i i = 0 vs.Message("This script removed data visualization legend from all view ports on all sheet layers.") # collect handles of selected VPs on active layer def GetHandle(h): if vs.GetObjectVariableInt(vs.GetLayer(h), 154) == 2: if vs.GetTypeN(h) == 122: hVP.append(h) hVP = [] vs.ForEachObjectInLayer(GetHandle, 0, 2, 1) # Traverse into the annotations group of selected VPs and delete Data Visualization Legend for VP in hVP: anno = vs.GetVPGroup(VP, 2) h = vs.FInGroup(anno) objs = [h] h = vs.NextObj(h) while h != vs.Handle(0): if vs.GetObjectVariableString(h, 1166) == "Data Visualization Legend": vs.DelObject(h) vs.UpdateVP(h) i = i + 1 h = vs.NextObj(h) if i > 1: vs.AlrtDialog(f"Removed {i} data visualization legends") else: vs.AlrtDialog(f"Removed {i} data visualization legend")
  9. Here is the script to remove legends from all viewports. ##This script remove data visualization legend from all view ports on all sheet layers ## Created by Jiajing Qi, Tested: VWX2023 SP1, 01/03/2023 ## Use it on your own risk import vs; global i i = 0 vs.Message("This script removed data visualization legend from all view ports on all sheet layers.") # collect handles of selected VPs on active layer def GetHandle(h): if vs.GetObjectVariableInt(vs.GetLayer(h), 154) == 2: if vs.GetTypeN(h) == 122: hVP.append(h) hVP = [] vs.ForEachObjectInLayer(GetHandle, 0, 2, 1) # Traverse into the annotations group of selected VPs and delete Data Visualization Legend for VP in hVP: anno = vs.GetVPGroup(VP, 2) h = vs.FInGroup(anno) objs = [h] h = vs.NextObj(h) while h != vs.Handle(0): if vs.GetObjectVariableString(h, 1166) == "Data Visualization Legend": vs.DelObject(h) vs.UpdateVP(h) i = i + 1 h = vs.NextObj(h) if i > 1: vs.AlrtDialog(f"Removed {i} data visualization legends") else: vs.AlrtDialog(f"Removed {i} data visualization legend")
  10. @Jesse Cogswell I even didn't know it exsits locally. Thank you for the info
  11. The first link is what I was missing. Thank you Edit: I still can not find what is 1166 for in both links @The Hamma
  12. @The Hamma Thank you for the code, it is very helpful. Circling back to it, I am having hard to find those INDEXes from Appendix, for instance, not sure 1166 means in GetObjectVariableString, is there a doc with full list of index.
  13. Building a Dialog with TextPopup, and I have PRESENTATION VALUES with that textpop. However, after exporting to python, how would I still retian those values. I notice those info are included in the section of 'XML defintion of the layout' . how would the main dialog code retreive data from 'XML defintion of the layout' Thank you
  14. Hi @Nikolay Zhelyazkov I understand your concern. As an option definitly helps. Inspired by data tages, what if we change UPDATE SHEET to 'LINKED VIEWPORT SCALE', just as what we have on REFERENCE MARKER, It is a popup, but it shows scales of each viewports on SELECTED SHEET from TBManager. The EDIT TEXTBOX stays as it is in case we need to note scale as 'NOT TO SCALE' Not sure if there is technical difficulty on this request, but it would defenitely save my clicks and brain.
×
×
  • Create New...