Wednesday, November 29, 2023
Home3D ModelingLearn how to ship to again an entity in LAYOUT - Ruby...

Learn how to ship to again an entity in LAYOUT – Ruby API


I’ve constructed a code that imports viewports to an current LO template, nevertheless the viewport is at all times on the high of the others components on the web page.

It’s potential to reorder that by means of the Ruby console? I couldn’t discover that data


I believe that you will need to place the entity upon a layer of it’s personal, then use both the Format::LayerInstance#reorder_entity() or Format::Layers#reorder() technique.

The draw order capabilities solely work for issues which can be on a identical layer. Layer order determines the stacking order of issues on totally different layers.



1 Like

So, I can’t reorder inside an current layer… Solely reorder the layers. Proper?

I don’t know concerning the API however as I stated, the ordering works inside a layer. Between layers, layer order is what issues.



1 Like

Incorrect.


FYI … Learn how to discover strategies within the API documentation:

Within the left navigation column, slightly below the listing caption, are 3 lists: Courses, Strategies and Information.

To show the listing of strategies, click on the Strategies hyperlink.

As soon as the Methodology Checklist exhibits, you’ll see a Search: field beneath the listing hyperlinks.
Within the field start kind a part of what you assume a technique identify is perhaps (with out quotes.)

For this use case, all I needed to kind was "reor" and the three strategies for the LayOut API had been proven, viz:

image

You too can get matches on substrings in the course of technique names.
Ie, attempt a search on: "entit" or "nam"

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments