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