Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 7
Anonymous
291 Views, 6 Replies

ai_table

I use this to gather a list of text styles:

(mapcar (function (lambda (i) (strcase i)))(ai_table "style" 0))

But what do I use for shapes?

TIA
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

Shapes are not defined in a table.


PS: you can streamline that one-liner a bit...

(mapcar 'strcase (ai_table "style" 0))

--

-Jason
Member of the Autodesk Discussion Forum Moderator Program


"C Witt" wrote in message news:3FBE68B4.7060301@trkeng.com...
> I use this to gather a list of text styles:
>
> (mapcar (function (lambda (i) (strcase i)))(ai_table "style" 0))
>
> But what do I use for shapes?
>
> TIA
>
Message 3 of 7
Anonymous
in reply to: Anonymous

ok, so if they are not defined.. then how can I delete them from a
drawing (I don't want to use purge)?

Jason Piercey wrote:
> Shapes are not defined in a table.
>
>
> PS: you can streamline that one-liner a bit...
>
> (mapcar 'strcase (ai_table "style" 0))
>
Message 4 of 7
Anonymous
in reply to: Anonymous

Never done anything with SHAPEs, but perhaps
(ssget) and (vla-delete) would get the job done?

--

-Jason
Member of the Autodesk Discussion Forum Moderator Program


"C Witt" wrote in message news:3FBE77C8.7060604@trkeng.com...
> ok, so if they are not defined.. then how can I delete them from a
> drawing (I don't want to use purge)?
Message 5 of 7
Anonymous
in reply to: Anonymous

would that not delete even items that are in use? (not good).

Jason Piercey wrote:
> Never done anything with SHAPEs, but perhaps
> (ssget) and (vla-delete) would get the job done?
>
Message 6 of 7
Anonymous
in reply to: Anonymous

I suppose that depends on how you are constructing
the filter used with (ssget)....

--

-Jason
Member of the Autodesk Discussion Forum Moderator Program


"C Witt" wrote in message news:3FBE8012.7020805@trkeng.com...
> would that not delete even items that are in use? (not good).
Message 7 of 7
Anonymous
in reply to: Anonymous

Shape definitions are in a shx file (a complied shp file) The file can
contain one shape or multiple shapes. The only way to delete the file is if
none of the shapes defined in it are not in the dwg. Now if each shape has
it own definition file and the shape is not used in the dwg that shx file is
not loaded into the dwg. But if the shape was inserted then deleted the shx
file is still in the dwg and the only way in know of to "delete" it is with
purge. IOW a shape file is the about the same as a font/txt file.


Murph

"C Witt" wrote in message
news:3FBE77C8.7060604@trkeng.com...
> ok, so if they are not defined.. then how can I delete them from a
> drawing (I don't want to use purge)?
>
> Jason Piercey wrote:
> > Shapes are not defined in a table.
> >
> >
> > PS: you can streamline that one-liner a bit...
> >
> > (mapcar 'strcase (ai_table "style" 0))
> >
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report