Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading Extensionobjects #1554

Open
sigurdrb opened this issue Jan 22, 2025 · 0 comments
Open

Reading Extensionobjects #1554

sigurdrb opened this issue Jan 22, 2025 · 0 comments

Comments

@sigurdrb
Copy link

Hi! I have an extensionobject of the type

MyObject Array[32]

[0]:
element1 : BOOL;
element2 : FLOAT;
element3: INT;
[1]
element1 : BOOL;
element2 : FLOAT;
element3: INT;
[2]
element1 : BOOL;
element2 : FLOAT;
element3: INT;
.
.
.
[31]
element1 : BOOL;
element2 : FLOAT;
element3: INT;

I have managed to access the node and stored it as 'MyNode'
however I cant access any of the data by name.
If I want to read element1 of the third item I can do that by
print = MyObject[2].Body[0]
I would rather be able to access it by MyObject[2].element1
or at least be able to read the names of all the elements by a method like read_display_name() or similar.
I have been trying to access the names of the elements in some way or another, but with no luck unfortunately.
If any of you could help, I would greatly appreciate it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant