Jump to content

matteoluigi

Member
  • Posts

    460
  • Joined

  • Last visited

Everything posted by matteoluigi

  1. Hi, a question, I have been asking myself various times before: Why not integrate the Serviceselect-portal directly inside Vectorworks. Sth like a mini browser inside the resource panel or similar... Now there is the answer: home screen, only the service select portal still hasn't been integrated. Could be the next step, I think 😉
  2. colored formula code has been a great step forward in that direction! You also now have the possibility of entering fragments of known commands and the syntax gets completed automatically, including a short description how the chosen command works (like in every other coding environment as well) AND, the same in Worksheets, Data Manager and of course the Vectorscript, Python code editor. Great Idea somehow, but, there are other more important issues, as well, imho 😉
  3. main problem might be, that all windows, doors, wall-openings are nested into their corresponding walls. Creating a new file with all layers, stories from the original model, without any content and copying and pasting all windows, doors... and pasting them "in place" to their original location could solve your problem. I tried to copy and paste doors, windows "in place" inside your file from one design layer into another and it worked quite well.
  4. #FILEN# works well #WS_Substring(#FILEN#;'_';3)# instead doesn't. The result is "FILEN". I guess I need to chose a worksheet function for the filename, but I don't find any (only Title Block related ones, but those don't work either, because a window isn't related to the database informations from the title block)
  5. great, and how do I check the filename in there? Like IF(FILENAME='*MA*','MA','NOTMA') ^^
  6. thanks, #Window CW#.#AdditionalInfo01# - #WS_SUBSTRING(Story,'-',1)# works, that's great!
  7. Hi, I like coding and most of all benefitting from the possibilities of coding additional things. So I do a little vectorscript, a little Python and of course I insert code in worksheets and the Datamanager. Actually I need some data stamps and I wonder, why there isn't any possibility of inserting there some code, too. Like getting a substring or an if clause. (concat isn't necessary there ^^) is there any attempt in that direction? thank you
  8. yeah, using a wildcard in vs.Layer instead creates a new Layer named * Pity, that there doesn't exist a function like vs.ClassList for Layers as well, sth like "vs.Layerlist" (with all layers, design layers and sheetlayers, of course...) 😉
  9. @MullinRJ At least I chose your code, because it was the simplest one (and adoptable for either classes and layers,...) Now I took another step and instead of using a StrDialog i tried to handle the prefix in a variable as well. Unfortunately I didn't make it working: import vs; vs.SetLayerOptions(5) prefix = ['.','Keine','WBW'] # this should be the list of all possible prefixes ClassL = [] for I in range(0, vs.ClassNum()): # build list of class names ClassL.append(vs.ClassList(I+1)) for aprefix in prefix: # test all prefixes in list vs.AlrtDialog(aprefix) # test, wether the prefix list really works - test passed for aClassName in ClassL: # test all names in list if (aClassName[0:len(prefix)] == aprefix): vs.ShowClass(aClassName) Good Idea (i thought), but, somehow only the 'WBW'-Classes have been set visible. I don't understand, why.. I also made a test with "vs.AlrtDialog(aprefix)" - and the "for prefix in prefix:"-loop indeed passed all prefixes in the List. classvisibilities.zip I attached a/the test file as well.
  10. Hi, is there any way, possibility, to use the vs.Showclass(), vs.Hideclass(), vs.Layer() commands with wildcards? Afaik you only can use them with exact layer names. A * for any class/layer or “.A-*” for any layer beginning with “.A-“ for example would be great.
  11. Hi, i am actually making some tests, connecting feature services to a georeferenced vw-file. First i set georeferencing in the file. Than I created the layer "feature service layer" and georeferenced it, too. Than I tried to bind some Hamburg Feature Services via Arcgis online, using an own free arcgis-account and a free trial-account. For example "Flurstücke - Hamburg" is an interesting layer. "you do not have the permission to access this resource." The Esri-Support told me, that the feature service I have been trying to bind to the design layer has been free. He told me, that this must be a Vectorworks-issue. In fact, he sent me the following page which shows a list of obviously free feature services, where all have been visible for free in an online arcgis-map. https://services2.arcgis.com/jUpNdisbWqRpMo35/arcgis/rest/services/ Here the "Flurstücke"-Page, where you also can view the map on arcgis for free, without the need of an account: https://services2.arcgis.com/jUpNdisbWqRpMo35/ArcGIS/rest/services/Flurstuecke_Hamburg/FeatureServer What's going wrong here? Featureservice-tests.zip
  12. I want to read out the size of German void Objects (Schlitze & Durchbrüche). Afaik it's a float variable in the record format 'Break Opening CW','Delta_x', 'Break Opening CW','Delta_y', 'Break Opening CW','Delta_z' I don't want to read out the numbers in 0,xxx meters but in xxx cm. So i multiply the value by 1000. however the result from the script operation is never xxx but always either 0,xxxxxxxx-e01m or x (also all void objects do have a 0,xxx size and I multiply that 0,xxx size by 1000) I also created a worksheet, which reads out the same variables. ='Break Opening CW'.'Delta_x'*1000 ='Break Opening CW'.'Delta_y'*1000 ='Break Opening CW'.'Delta_x'*1000 here the multiplication does work instead that's so strange to me. 0,250*1000 should be 250 and not 2,00, 0,500*1000 should be 500 and not 5,00... I tried a lot, Num2StrF, Num2Str(0,...), multiplication by 1000000, no multiplication,... every time I use Num2Str 0,xxx changes in x. I don't really understand, what's going on there... ( i also attach the vwx 2022 SP3 file) def parentobjectcheck(SDBH): HNDL=vs.GetParent(SDBH) SDBx = vs.GetRField((SDBH),'Break Opening CW','Delta_x') SDBx = vs.Num2Str(2,SDBx*1000) # SDBx = vs.Round(SDBx) SDBy = vs.GetRField((SDBH),'Break Opening CW','Delta_y') SDBy = vs.Num2Str(2,SDBy*1000) # SDBy = vs.Round(SDBy) SDBz = vs.GetRField((SDBH),'Break Opening CW','Delta_z') SDBz = vs.Num2Str(2,SDBz*1000) # SDBz = vs.Round(SDBz) vs.SetRecord(SDBH, 'DB-BAUTEILKUERZEL') vs.SetRField((SDBH),'DB-BAUTEILKUERZEL','01 Bauteilkuerzel',(vs.Concat(SDBx,'-',SDBy,'-',SDBz))) vs.ForEachObject(parentobjectcheck,"(INSYMBOL & INOBJECT & INVIEWPORT & (PON='Break Opening CW'))") void-dimensions.zip
  13. Hi, does anybody know the reasons for a Geoimage showing the error message GeoImage "Unsupported service type. Select a different service."? Wrong coordinates/coordinates in which the service doesn't provide images? Tried to fix that, without any success...
  14. Hi, our actual Data Manager - data mapping schemes are full of non symbols (must be more than 300) Whenever I load the scheme in a new file, all of these symbols come in the vwx file datamanager, as well, and there is no way to clean that list. (except of editing the data mapping scheme in an editor like visual studio code) Can I do sth more efficient? WHAT???
  15. Hi, in VW 2022 the dropdown menu for selecting a class for class based objects is still confusing to me. At least a search dialogue would be great, and organizing the dropdown menu alphabetically would be really good, too. (😟 still shocked by that confusing dropdown menu)
  16. afaik saved views are a sort of scripts? (why else do they appear as scripts in the resource manager) However, copying from file to file isn't possible. Doesn't there really exist any kind of trick, workaround,...? I want to build some saved views to toggle on/off some groups of data-visualizations, I need in more than one file...
  17. ... but you're right! Turning focus off makes it work!
  18. ah, now I found, what you were talking about. Since keyboard-shortcuts make me save time and look way cooler using my computer I don't wanna miss "use keyboard navigation to move focus between controls". Using dialogues and being able to switch options with tab keys is such a time saver and after getting used to it is way smoother than using the mouse arrow (and makes you look way cooler, using your computer!).
  19. sry, i got german vw, could you send me a screenshot, where to find that setting please?
  20. @Peter Vandewallei often use keyboard shortcuts, so i very often do use the tab key to switch from one input box to another. After jumping to the first drop down the cursor jumps to the measure HUD next to the mouse cursor (as far as I remember in german it's called "OMA" = "Objektmaßanzeige")...
×
×
  • Create New...