Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/14/2023 in all areas

  1. Personally I don't tend to use the getpropertyvalue/setpropertyvalue functions (in favour of operating on the attribute reference entities/objects directly), but in testing, both functions will return an error if the supplied tag name does not correspond to an attribute reference held by the block. As such, issuing a call to getpropertyvalue prior to setpropertyvalue will offer no benefit in this case. Instead, you could account for errors using the vl-catch-all-apply function, e.g. the following will return T if successful, else nil: (not (vl-catch-all-error-p (vl-catch-all-apply 'setpropertyvalue (list obj "QUANTITY" (rtos (* di ht) 2 3)))))
    2 points
  2. You would have to set the value to test looks like it always returns nil. (if (setq x (getpropertyvalue obj "QUANTITY")) (setpropertyvalue obj "QUANTITY" (rtos (* di ht) 2 3)) ) Let us know. can't test in BricsCAD. side note I think entity names work as well doesn't have to be a vla-object name.
    1 point
  3. Would this be a good starting point? It trims a single polyline however could be modified I think for many objects inside a circle
    1 point
  4. So I'm guessing that you don't use or have any named page setups. Page setup information (window location, page size, etc.) is stored on a per-layout basis in the drawing. If you are not saving it, then you can't expect it to be there when you go back.
    1 point
  5. Yes! Is your object snap on when you are picking the window points? What about if you save a page setup, does the saved page setup get altered?
    1 point
  6. Do not use plot windows. Set your template to plot by layouts. Set it and forget it. Never fool with it again.
    1 point
×
×
  • Create New...