Jump to content

Recommended Posts

Hi

Switch model browser to "component view" mode, right click on browser and select "export" to csv file

 

Or, in utility tab, click "component table" and select File > export to csv file

Share this post


Link to post
Share on other sites

Ok it is like this

set fpt [open c:/sample.csv w]

fconfigure $fpt -encoding uft-8

puts $fpt "comp id,comp name,thickness"

foreach compid {1 2 3 4 5} {

puts $fpt "$compid,[hm_getentityvalue comps $compid name 1 -byid],[hm_getthickness comps $compid]"

}

close $fpt

 

You should use csv package with commands ::csv::join and ::csv::split to handle strings with special characters

 

Share this post


Link to post
Share on other sites
On 09/09/2017 at 11:14 AM, tinh said:

Ok it is like this

set fpt [open c:/sample.csv w]

fconfigure $fpt -encoding uft-8

puts $fpt "comp id,comp name,thickness"

foreach compid {1 2 3 4 5} {

puts $fpt "$compid,[hm_getentityvalue comps $compid name 1 -byid],[hm_getthickness comps $compid]"

}

close $fpt

 

You should use csv package with commands ::csv::join and ::csv::split to handle strings with special characters

 

Thanks tinh.

I will try thiz champ

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...