Jump to content

Pat Stanford

Moderator
  • Posts

    12,626
  • Joined

  • Last visited

Everything posted by Pat Stanford

  1. I am not seeing an extra space here in VS2021SP2. Try this one. I have put asterisks on either side of the VS String to specifically look for white space. PROCEDURE Example; VAR strName : DynArray of Char; BEGIN strName := 'vs string'; PythonBeginContext; PythonExecute( 'import vs' ); PythonExecute( 'ss = ''hello from python: *''' ); PythonExecute( 'vs.AlrtDialog(ss + vs.GetVSVar("strName") + ''*'')' ); PythonExecute( 'vs.SetVSVar("strName", "python string")' ); PythonEndContext; AlrtDialog( Concat( 'VectorScript received: *', strName, '*' ) ); END; RUN(Example);
  2. Actually you can, but it takes some potentially tricky IF and/or CONCAT functions. And then you have a cell/column with a formula instead of a Record.Field entry so you can't edit what is displayed. Sorry, the completionist in me is coming out this morning. ;-)
  3. The main reason for the differences is that the European distributors found that their customers did not think the US standard Door tool/object met their needs. So they developed a version for the localized version. that was better suited to the local needs. Until now, Vectorworks in the US has not purchased the rights to the localized objects to be able to try and make a single version. Personally, I think a single worldwide tool would end up with so many options that it would be close to unusable and that localized tools for specific needs are actually a good thing.
  4. Take your time and learn the new ways. Lots of good things. And unless you spend a lot of time comparing different files side by side, you might want to try the Use Application Window setting. I much prefer it as the palettes dock into the window and are always in the same place. Also, if you switch screens often (I have a second screen for my laptop at both home and the office), only having to resize one window instead of each open file is a real benefit. I am always surprised by all of the new things that I have been doing the old hard way just because I know how and never bothered to learn the new way.
  5. If you want to do it using Saved Views, Go to the Organization dialog box, Saved View pane. Select the View you want to edit and click the Edit button at the bottom. From the Edit View dialog box, click the Edit Script button at the top right. To have the view turn on Use Layer Colors enter: SetPref(11, True); To have the view turn off Use Layer Colors enter: SetPref(11, False); Make sure you include the semicolon at the end. Click OK to exit the script editor. Click OK again to exit the Edit View dialog box. But to me it is easier to just turn on the Quick Preference for Use Layer Colors by clicking on the disclosure triangle at the right end of the Mode bar and checking Use Layer Colors. Then you only have to use one click to toggle the preference.
  6. Sure you can. You just need to either pick one of the user fields to store the information or add a custom record format to store the data. Since Databases are completely dynamic, unless the data is stored in a way that is truly associated with the object, there is not way for VW to keep the data with the correct objects when the database changes (whether that is due to adding or removing objects to the drawing, changing the sort order, or SUMmarizing the data.
  7. 1. I don't know what Solid Selection - Locked means. 2. It opens and filets fine in VW2021SP2. 3. If you remove the three holes, filet the rest of the handle and then resubtract the holes it works fine. You can even filet the edges of the holes after you subtract them. HTH
  8. You can do calculations in database rows. It just has to be the same formula for every subrow in the database. Try this. Create a file and put a couple of rectangles in the file. Create a worksheet with a database criteria of Type is Rectangle. I am going to use Row 3 for my example. Set the formula for Column A to be =Width. For Column B to =Length. For Column C. =A3*B3 When you recalc the worksheet it will take the current height and width of the rectangles and multiply them together to get the area. You don't even have to use cells in the same row. If you set cell A1 to be 2 and set formula for column D to be =C3*A1 you will get the area of both sides of the rectangle. The only real limitation to databases is that everything must either be a Record.Field or a calculation. You can not just type something into a cell unless it is a Field. HTH
  9. What version of VW are you using? I just tried 50 symbols in a file and it recalculated in less than a second. This is VW2021SP2. What rendering mode are you using? What Resolution? Try putting the symbols in a different file and see what happens there to rule out there being something else in your file that is causing the problem. Ask again if you still need more help.
  10. Do you need this to be in a Database? Or would just in spreadsheet cells be enough?
  11. Copy and paste into a new file and try the filet there. If it still does not work, post the simple file here for us to take a look at. Have you restarted VW? Sometimes closing and reopening the file or restarting VW can clear a stance problem like this.
  12. A better work around is to set the VS Variable to be a DynArray of Char rather than a string. Then you get the entire VS string into Python. Bug Report filed on the string version.
  13. This dialog box does not look like this is the default VW Door object. The number of people on this list who can help with a localized tool is much smaller. Contacting your local tech support may be a better option.
  14. That sort of thinking is exactly why I said 4 hours to get a prototype and then 6 to 12 years to get a final script done! ;-)
  15. The Active Class is always visible. If NonPlot is active then the objects in that class will be visible.
  16. I have run out of time for tonight. The Image function does not work the way I thought it would. I will try to find some more time tomorrow night. Sorry.
  17. 1. Value if a worksheet function that will take a "string number" (it could be a hard coded string, a record.field, or even a formula that generates a string) and converts it into a numerical value that can be used in further calculations. The "string number" must have only numeric characters and a decimal point. Thousands separators MAY be allowable. I have not checked. Things like currency symbols or dimension marks are certainly not allowable. If you have a string that contains them you might be able to use the SubString function to extract just the number. 2. The 11_ does not make the number into a string, but it does (usually) designate a field that contains a text representation of a number. Just one of a few different conventions used by some of the programers of objects over the years. 3. I also did not realize that the Leader and Trailer applied to all the different formats. Thanks for the tip. 4. I just checked in VW2021 and changing a user field does not change the class of a space for me. I also tried in VW2020 SP5 and did not get a change in class. I don't know what is going on in your file. Try in a new blank (maybe Architect template) file and see if it repeats. Restart VW, etc. Glad I could help.
  18. Not as quick or as cool as Fill Down/Fill Right in Excel, but if you Copy a cell with a formula, then select a range you want the formula in, when you Paste the formula will be pasted into every cell with relative references (or absolute if the original cell specified absolute). Even slightly cooler is if you select a range of cells and Copy, then select a range and paste, the copied cells will be pasted in as many times as will fit. So if you copy cells containing: Happy Birthday and then you select a range of 7 cells you will get: Happy Birthday Happy Birthday Happy Birthday Happy HTH
  19. I think what you are looking for is called Control Geometry. Once you create an Object Node out of a Network, you can edit the Control Geometry by right clicking on the object. The Control Geometry node will get you a "handle" to the first object in the Control Geometry group. You can also access object outside of the node by Criteria. Name might be the easiest way. If you need multiple items perhaps place them in a group that is named in the OIP so the Object Node can find it.
  20. Thanks for thinking of me. I think. ;-) Most (all?) of the Areas in the Space record have both a Numeric version and a Static Text version. The static text version is just that text with the number and the unit included. If you want to be able to sum the area you will need to use the number version. These are stored as numbers in the Space record These are stored as text in the Space record. There does not appear to be a Text version of Proposed Area. The Space record does not appear to have a Cost field. You could use one of the user fields. If you don't include the currency marker or thousands separators, then something like =Space.Area * Value(Space.'11_User-Def info 1' should work. Column number formats are set in the Worksheet Format Menu:Cells...:Number tab. Columns formatted as a Dimension will pull the units and decimals from the Document Settings:Units. Columns formatted as Decimal allow you to set the number of decimals, but will not put the unit marks into the cell. Ask again if you need more information.
  21. Don't use the option in the View bar, just select the PDF and use the Rotate tool in the Basic Tool Set. Click on two corners of the PDF and then "drag" that lever until it is horizontal/vertical. Or tab into the data window and enter the correct angle.
  22. Take a look at this link before you make a final decision. ;-) Is_It_Worth_The_Time?
  23. I have never tried using a Stake in Edit Section in place mode. Do you have the Stake Mode (in the OIP) to be Use as 2D/3D Graphic only?
  24. I didn't think about it yesterday, but Worksheets can only access items that are in the drawing, not only in the resource manager. I think your best bet is to probably have an extra layer with a single copy of all of your image symbols. Let me give this some more thought and see if I can come up with any other ideas.
×
×
  • Create New...