FastFiber

Filters

Gestart door Nico160775, di 11 05 2010, 12:11:16

Vorige topic - Volgende topic

Nico160775

Ik heb verschillende filters aangemaakt om iets te selecteren in een tekening.
Weet er iemand hoe ik deze filters kan gebruiken in een routine/script?
Ik wil een tekening laten doorlopen door een script en bepaalde onderdelen automatisch naar een bepaald layer laten verplaatsen.
vb. een volle lijn komt op een layer 1C een streeplijn komt op 1H.
      een symbool/block komt op layer symbols
      .... en zo heb ik al verschillende filters aangemaakt zodat ik deze kan selecteren om dan op die layer te verplaatsen.

Alvast bedankt.

hulpje

Ik denk dat je aan de slag moet met het SSX commando.

Succes!

Richard
HELAAS BESTAAT CADToppers.com niet meer
ACP-er (AutoDesk Certified Professional)

Nico160775

Citaat van: hulpje op di 11 05 2010, 16:10:01
Ik denk dat je aan de slag moet met het SSX commando.

Succes!

Richard

Waar kan ik daar meer info over vinden? want in de help kennen ze dat niet...

Reimer

In de volgende post heb ik hier iets over gezegd. Misschien is dit voldoende om mee op weg te komen. Zo niet dan horen we het wel.
http://www.cadsite.be/smf/index.php?topic=4048.msg20869#msg20869

Reimer

sschevers

Meer uitleg over SSX vind je in de help van de expresstoools.  Zie onderstaande info

greetz Stephan


SSX

--------------------------------------------------------------------------------

Creates a selection set

Either type SSX at the Command prompt to create a "previous" selection set or type (SSX) in response to any Select Objects prompt.

SSX returns a selection set that is either exactly like a selected object or, if you adjust the filter list, very similar to that object.

Command: SSX
Select object/<None>: Use an object selection method to select a template object, or press ENTER for none
>>Block name/Color/Entity/Flag/LAyer/LType/Pick/Style/Thickness/Vector:


Filter Options
Block name Specifies the block name to add or remove.
Color Specifies the color number to add or remove.
Entity Specifies the object type to add or remove.
Flag Toggles the ENTITIES FOLLOW flag.
Layer Specifies the layer name to add or remove.
Ltype Specifies the linetype name to add or remove.
Pick Selects object(s) using any selection set method.
Style Selects the text style name to add or remove.
Thickness Specifies the thickness to add or remove.
Vector Specifies the extrusion vector to add or remove.

Note:
Once you have a filter list, any of the filters can be removed by selecting the option keyword and then pressing ENTER. If an item exists in the filter list and you elect to add a new item, the old value is overwritten by the new value. You can have only one of each type of item in a single (ssget 'x') call.


Usage Example:
Select a line to use as a template object, but remove the layer filter.

Command: SSX
Select object/<None>: Select a line
Current Filter: ((0 . "LINE") (8 . "0") (39 . 2.0) (62 . 1) (210 0.0 0.0 1.0))
Enter filter option [Block name/Color/Entity/Flag/LAyer/LType/Pick/Style/Thickness/Vector]: layer
>>Layer name to add/<RETURN to remove>: Press ENTER to remove layer filter
Current Filter: ((0 . "LINE") (39 . 2.0) (62 . 1) (210 0.0 0.0 1.0))
Enter filter option [Block name/Color/Entity/Flag/LAyer/LType/Pick/Style/Thickness/Vector]: Press ENTER
To select objects that match the filter, enter "previous" at the next Select Objects prompt.