TCL自學筆記-02

*setvalue

Syntax

*setvalue entity_type <select_type>=<selection> <name1>=<value1> ?<name2>=<value2>? ... ?<nameN>=<valueN>? ?row=<row_index>? ?column=<column_index>? ?STATUS=<status>?

Examples

Update the attribute Rho of material ID 1 along with Status to value 1:

*setvalue mats id=1 Rho=1.1 STATUS=1

自學語句1:

*setvalue props name = $name STATUS = 1 95=$bihou

自學語句2:

*setvalue comps name=$name propertyid=$props_id

自學語句3:

*setvalue props id =$props_id materialid = $mats_ids

*createmark

Syntax

*createmark entity_type mark_id "?option?" list

Examples

To delete all elements in the database:

*createmark elems 1 "all"
*deletemark elems 1

自學語句1:

*createmark comps 1 all

*deletemark comps 1

*clearmarkall

Clear all entity IDs for all entity types from the specified mark.

Syntax

*clearmarkall mark_id

Examples

To clear the contents of mark 2 for all entity types:

*clearmarkall 2

hm_getmark

Returns the entity IDs of the passed entity type on the specified mark.

Syntax

hm_getmark entity_type mark_id ?panel_sensitive?

Examples

To return the components on mark 1:

hm_getmark comps 1

A mark of loads is created in the Delete panel. The Mask panel has been pushed using the command "hm_pushpanel mask". A mark of loads is created in the Mask panel. To get the list of loads on mark 1 created from the Mask panel:

hm_getmark loads 1 1

To get the list of loads on mark 1 created from the Delete panel:

hm_getmark loads 1 0

自學語句1:

set comps_id [hm_getmark comps 1]

堅持每天學習,時間會證明一切,加油!

登錄后免費查看全文
立即登錄
App下載
技術鄰APP
工程師必備
  • 項目客服
  • 培訓客服
  • 平臺客服

TOP

2