Cancel
Showing results for 
Search instead for 
Did you mean: 

OnSelect method

Legend
Legend

Hello,

 

In 2D I have a method(controller) call "OnSelect" on an object. It works fine.

If I try in 3D the "OnSelect" method is not executed.

 

Is that a bug ?

 

Find attach a model that show the problem.

 

Regards,

 

rpinon

6 REPLIES 6

Re: OnSelect method

Phenom
Phenom
There is a 2d attribute (.selected) and a 3d Attribute (_3d.selected)

2d is triggered for 2d and 3d is triggered for 3d separately.

If I remember well, ( before implementing latest 3d engine a couple of years ago) you could link 3d and 2d attributes

So I assume it is probably no bug, but was just not implemented ( yet ?)

Re: OnSelect method

Legend
Legend
What ? link 3d and 2d attributes ?

I read the help about selectCtrl and it is write that 3D selection don't trigger it...

But i assume that if a feature exist in 2D it must exist in 3D.

So please siemens implement it.

Regards,

rpinon

Re: OnSelect method

Siemens Phenom Siemens Phenom
Siemens Phenom

Selection controls were implemented in 2D at a time in which we did not yet have objects like checkboxes and buttons. At that time, they made sense to allow the users to implement such objects themselves.

For a couple of years, these objects are there so the original need was no longer there.

 

In that time, we learned that models with selection controls quickly became a pain in the ass to be understood and/or operated by anyone short of the author of the model - and in not that few cases even by the author.

 

As a result, we made the decision some time ago neither to implement a 3D counterpart to the 2D selection control nor to link the 3D selection to a common selection control mechanism.

 

What still would be interesting to me is what you want to accomplish with a selection control?

It might well be that there a a couple of better ways to accomplish the same goal.

Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution

Re: OnSelect method

Legend
Legend

Ok , I understand.

 

I just wanted to test the onSelected feature and I see that the beavior is not the same in 2D and 3D. And I noticed that several feature witch exist in 2D does not exist in 3D.

 

Like : 

  • create user ribbon tab
  • create user context menu
  • reorder succesor
  • Align object (between them)
  • etc

The question I'm asking myself is how build a full 3D model when I can't use all 2D feature.

 

rpinon

 

Re: OnSelect method

Siemens Phenom Siemens Phenom
Siemens Phenom

User ribbon tabs and user context menus are available from the 3D properties dialog of the frame (you can find them in the "Tools" menu, as well as e.g. the shift calendar selection).

The align commands will be available in version 14.1.

Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution

Re: OnSelect method

Legend
Legend

Ok, good to know for user ribbon, context and align commands.

 

rpinon