Message 1 of 3
BUG: Naming a Layout with #

Not applicable
10-11-2005
03:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Try this...
Name a Layout with the number sign in it, i.e. "RFI #077", and try the
following code to create a selection set of all block with certain name. You
will need to substitute the "$i_*" with your block name specification. It
will return nil even though these blocks exist.
(setq ss1 (ssget "x" (list (cons 0 "insert") (cons 2 "$i_*")(cons 410
(getvar "ctab")))))
Now rename your layout to exclude the number sign, i.e. "RFI 077", and try
the code again and it will return a selection set.
Jim Dee
Name a Layout with the number sign in it, i.e. "RFI #077", and try the
following code to create a selection set of all block with certain name. You
will need to substitute the "$i_*" with your block name specification. It
will return nil even though these blocks exist.
(setq ss1 (ssget "x" (list (cons 0 "insert") (cons 2 "$i_*")(cons 410
(getvar "ctab")))))
Now rename your layout to exclude the number sign, i.e. "RFI 077", and try
the code again and it will return a selection set.
Jim Dee