Jump to content

The Hamma

Member
  • Posts

    220
  • Joined

  • Last visited

Reputation

35 Great

2 Followers

Personal Information

  • Occupation
    Architect
  • Location
    United States

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Probably not the issue but check your serial number to see what products are activated. Renderworks should be listed.
  2. I have had many issues with the undo command as well and I think it may have been related to MSI Afterburner and RivaTuner. I have uninstalled them and my undo issues appear to have gone away.
  3. I uninstalled MSI afterburner and RivaTuner and my undo issues have gone away for the time being.
  4. In every version of VW 2022 has the following wall component wrapping issue when inserting Doors or Windows in wall that have component wrapping enabled. If you use the Window or Door tool the components won't wrap but if you invoke the command by double clicking the style in the resource browser it will wrap the components. SP-1.1 has the following bug as well. WALL AND WINDOW BUG.vwx
  5. Perfect, Thanks. Here is a script to import two Text Styles into the current drawing that are stored in: {Workgroup folder or user folder}\Libraries\Defaults\Text Styles\Text Styles.vwx' """ Script to import two text styles into current drawing. Custom scripts can be added to: {Workgroup folder or user folder}\Libraries\Defaults\Text Styles\Text Styles.vwx Modify Style1 or Style2 to import your custom style This Python Script may be freely distributed. No warranty provided. Use at your own risk. David Hamer, 2021 revision 10/21/2021 """ Style1 = 'Callouts 10 pt' #change this to import different text style Style2 = 'Dimensions 10 pt' #change this to import different text style StyleFolder = 'Text Styles' #Name of resource folder to create in current drawing SourceSub = 'Defaults:Text Styles' #Sub path ResType =109 #Text Style type folderIndex =13 #Libraries if vs.GetName(Style1) != []: ResourceList, NumItems = vs.BuildResourceList(ResType, folderIndex, SourceSub) while NumItems != 0: ResourceName = vs.GetNameFromResourceList(ResourceList, NumItems) if ResourceName == Style1: vs.ImportResourceToCurrentFile(ResourceList,NumItems) if vs.GetObject(StyleFolder) == []: vs.NameObject(StyleFolder) vs.BeginFolderN(ResType) vs.EndFolder() vs.SetParent(vs.GetObject(Style1),vs.GetObject(StyleFolder)) NumItems -= 1 if vs.GetName(Style2) != []: ResourceList, NumItems = vs.BuildResourceList(ResType, folderIndex, SourceSub) while NumItems != 0: ResourceName = vs.GetNameFromResourceList(ResourceList, NumItems) if ResourceName == Style2: vs.ImportResourceToCurrentFile(ResourceList,NumItems) if vs.GetObject(StyleFolder) == []: vs.NameObject(StyleFolder) vs.BeginFolderN(ResType) vs.EndFolder() vs.SetParent(vs.GetObject(Style2),vs.GetObject(StyleFolder)) NumItems -= 1
  6. Ok, Follow up question. Does anyone know how to set the Document Text Style preference for future text objects to be a particular text style via script? and How to move text styles into a Text Style folder via script?
  7. I have looked through the SDK and maybe I am missing it but I can't find the Object Type ID integer for "Text Styles". Anyone know what it is?
  8. I have a script that worked great in 2021 but now in 2022 the drawing labels that are updated by the script do not update in the drawing. Any ideas how to get it to refresh. I have tried the obvious refresh, redraw options. """ Imports 'Drawing Label VA - Dwg No. Sht No.' into drawing and replaces other styles with this style 2022 Doesn't refresh plugin. Edit plugin geometry to refresh drawing after running script. David Hamer, 2020 Revised 2021-10-19 """ if vs.GetName('Drawing Label VA - Dwg No. Sht No.') != []: ResourceList, NumItems = vs.BuildResourceList(16, 13, 'Object Styles:Drawing Label') while NumItems != 0: ResourceName = vs.GetNameFromResourceList(ResourceList, NumItems) if ResourceName == 'Drawing Label VA - Dwg No. Sht No.': vs.ImportResourceToCurrentFile(ResourceList,NumItems) if vs.GetObject('Drawing Label Styles') == []: vs.NameObject('Drawing Label Styles') vs.BeginFolder() vs.EndFolder() vs.InsertSymbolInFolder(vs.GetObject('Drawing Label Styles'), vs.GetObject('Drawing Label VA - Dwg No. Sht No.')) NumItems -= 1 def dlupdate(h): if vs.GetPluginStyle(h) != 'Drawing Label VA - Dwg No. Sht No. NTS': if vs.GetPluginStyle(h) != 'Drawing Label VA - Dwg No. Sht No.': #pt= vs.Get2DPt(h,0) #vs.DelObject(h) #vs.Symbol('Drawing Label VA - Dwg No. Sht No.',pt,0) vs.SetPluginStyle(h,'Drawing Label VA - Dwg No. Sht No.') #vs.SetClass(h,'A-ANNO-LABL') vs.ResetObject(h) #vs.ReDrawAll vs.ForEachObject(dlupdate, "(INSYMBOL & INVIEWPORT & (PON='Drawing Label2') & (V))") vs.DSelectAll; test.vwx Drawing Label format.vsm
  9. I was having Undo problems in 2021 also. Now I’m continuing to have those same problems in 2022. Most of the time it has to do with relocating walls or symbols within the walls that cause the undo to break.
  10. Ok next issue. I can make two options work with the YES@CONDITION:NO . But when I try to divide space number field with a number that I placed in the user field it only displays it displays it as text. Input #Space#.#Area##doc area_3_0#/#Space#.#11_User-Def Info 2# or #Space#.#Area##doc area_3_0#/#Space#.#11_User-Def Info 2##VAL# or #Space#.#Area##doc area_3_0#/#Space#.#11_User-Def Info 2##INT# Output 100/15 instead of 6.66 How do I force the tag to read #Space#.#11_User-Def Info 2# as a number rather than text?
  11. OK I got the @ outcomes to work but it only works with two options. I was hoping the “if” function would work so I could evaluate three options.
  12. I cannot get an IF expression to work in the Data Tag. What am I doing wrong? I am working with a Data Tag linked to a Space and and I tried the example directly from the help guide and it does not work. It only prints the formula in the tag. From the help guide
×
×
  • Create New...