Blcoks with atributes
I have been using Ai to assist with rewriting some lisp routines and trying to improve our cad workingn systems.
I want to reduce the number of block in use anthough i could creat one for three different setting ie black white graphic.
It seems howver that bricscad doesnt do this in the same way as autocad, is this something that it is in the pipleine? The below basially makes paramaetric/dynamic blocks useless to me.
Exactly — that’s the crux of the problem in BricsCAD. Unlike AutoCAD, BricsCAD does not expose dynamic block visibility states to AutoLISP, so a single block that internally contains three visibility states is indistinguishable from Lisp’s perspective: all three attributes are visible to the routine, regardless of which “state” the user sees on-screen.
So:
- ✅ Separate blocks per state works perfectly:
- One block for the white door (
DOORRH_100X2400_WHT) - One block for the black door (
DOORRH_100X2400_BLK) - One block for graphite (
DOORRH_100X2400_GPH) - Your BOM routine can simply count blocks by name.
- One block for the white door (
- ❌ Single block with multiple visibility states won’t work reliably:
- The Lisp cannot tell which state is “on” or “off”
- All attributes inside the block are seen regardless of which state is visible
In other words: BricsCAD can show it correctly visually, but Lisp cannot detect it, so your BOM will always see all three.
Comments
-
Hello.
You could experiment by using the functions from Lee Mac, see the next link.
With these functions, retrieving the visibility state of a dynamic block should work fine.
I tested with V26.1.08.0