Jump to content
Vikas Kumar

To get node id attached to a system through CELAS2 Element

Recommended Posts

Hi all,

 

I wants to get system which is attached to "CELAS2" element.

                                            or

Node we can get which is attached to "CELAS2" element. From here How we can identify that system is also attached to that node.

Is there any way to know node id from which a system is attached or can we identify whether a system is attached to a "CELAS2" element.

 

I am using this code to get node id of "origin" but it is showing zero.

 

# With system id 

set x [hm_getvalue systems id=52 dataname=originnodeid] ;  # returning 0

 

# With system collector showing 0 attribute 
set x [hm_getvalue systemcols id=1 dataname=attributesmax] ; 

 

we can get node id by using Xref entities in HM for reference i am keeping image:-

nodeId.thumb.png.09d64f3116e7aa33765419dd2fcec250.png

 

@tinh or @Livil Lyle help asap.

 

Best Regards,

Vikas Kumar

 

 

Share this post


Link to post
Share on other sites

Thanks livil,

This is helpful. I never tried in reverse as you have mentioned.

And how we can review system as shown in image. If we know system id.

reviewSyst.thumb.JPG.b497882565fe00127479dd4a871d85e8.JPG

 

@Livil Lyle please suggest.

 

I tried below code but it is not helpful.

 


*createmark systems 1 "all"
set sysID [hm_getmark systems 1]
*clearmarkall 1
foreach sys $sysID {
    *createmark systems 1 "by id" $sysID
    *showentitybymark 1 1 2
    *reviewentity systems "by id" $sys 3 1 0
    hm_redraw
    tk_messageBox -message "see is it ok" 
    *resetreview
}

 

Best Regards,

Vikas Kumar

Share this post


Link to post
Share on other sites
1 hour ago, Livil Lyle said:

Hi Vikas,

 

Have you tried: 

 

set systemid [hm_getvalue nodes id=$nodeID1 dataname=outputsystemid];

 

else please share a simple model with that element and system. 

 

 

Hi Livil,

 

Can we get system "reference and displacement" node by using tcl\tk script.

It's very urgent. 

 

@Livil Lyle @tinh

 

Best Regards,

Vikas Kumar

Share this post


Link to post
Share on other sites
8 hours ago, vipin said:

 

@Vikas Kumar,

 

Is this something you are looking for?

 

 

Hi VIpin,

 

But in this method how to check which is assigned node and which one is referenced node.

It is returning both.

 

Regards,

Vikas Kumar

Share this post


Link to post
Share on other sites

 

 

set x [hm_getvalue systems id=52dataname=originnodeid] ;  # returning 0 because system is not defined by node it's just a system located at that position .

 

 

Pandurang and Vikas Kumar like this

Share this post


Link to post
Share on other sites
3 hours ago, Vikas Kumar said:

 

Hi VIpin,

 

But in this method how to check which is assigned node and which one is referenced node.

It is returning both.

 

Regards,

Vikas Kumar

 

 

As Vipin suggests

*createmark nodes 1 "equal to value" inputsystemid $sysID

=> reference system

*createmark nodes 1 "equal to value" outputsystemid $sysID

=> displacement system

Share this post


Link to post
Share on other sites
19 hours ago, Vikas Kumar said:

Thanks livil,

This is helpful. I never tried in reverse as you have mentioned.

And how we can review system as shown in image. If we know system id.

reviewSyst.thumb.JPG.b497882565fe00127479dd4a871d85e8.JPG

 

@Livil Lyle please suggest.

 

I tried below code but it is not helpful.

 


*createmark systems 1 "all"
set sysID [hm_getmark systems 1]
*clearmarkall 1
foreach sys $sysID {
    *createmark systems 1 "by id" $sysID
    *showentitybymark 1 1 2
    *reviewentity systems "by id" $sys 3 1 0
    hm_redraw
    tk_messageBox -message "see is it ok" 
    *resetreview
}

 

Best Regards,

Vikas Kumar

 

 

And tinh,

 

How we can review like this. as shown in image.

 

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...