Create a secton view with split crop region

Create a secton view with split crop region

MvL_WAG
Contributor Contributor
1,611 Views
4 Replies
Message 1 of 5

Create a secton view with split crop region

MvL_WAG
Contributor
Contributor

Hello Everybody,

 

My quest is to create a script that creates a section view with a split crop region.

 

Below my (simplified) python script to make this possible:

#The inputs to this node will be stored as a list in the IN variables.
view = UnwrapElement(IN[0][0]) #SectionView created before

TransactionManager.Instance.EnsureInTransaction(doc) cropRegionMananager = view.GetCropRegionShapeManager() #get cropregion of view cropRegionMananager.SplitRegionVertically(0,0.1,0.5) #split cropregion vertical at 0.1 of height and 0.5 of height TransactionManager.Instance.TransactionTaskDone()

Result of above script: 

Result of scriptResult of script

 When you select a split cropregion, a two sided arrow show op in the center of the region, when hovering, it says move view region (see image below). I can't seem to find how to use this function with the use of the api.

highlighted function I would like to use in APIhighlighted function I would like to use in APIBelow, the wanted result of my script, (a split crop region, moved to be near the other part of the crop region).
Wanted End ResultWanted End Result

 Does anybody know if this is can be done?

I would be helped a lot,

 

Thanks in advance.

 

Greetings Maarten,

 

P.S. sorry for my pour englisch it is not my native language.(NL)

 

 

 

0 Likes
1,612 Views
4 Replies
Replies (4)
Message 2 of 5

JimJia
Alumni
Alumni

Dear Maarten Van Der Linden,

 

I am sorry to say that there is currently no API access to this functionality.


I can help to create Revit wish list item on your behalf for the functionality you suggest, besides, you can submit your ideas here: https://forums.autodesk.com/t5/revit-ideas/idb-p/302/tab/most-recent

 

This issue is important to me. What can I do to help?


This issue needs to be assessed by our engineering team, and prioritized against all of the other change requests that are outstanding. As a result any information that you can provide to influence this assessment will help. Please provide the following where possible:
• Impact on your application and/or your development.
• The number of users affected.
• The potential revenue impact to you.
• The potential revenue impact to Autodesk.
• Realistic timescale over which a fix would help you.
• In the case of a request for a new feature or a feature enhancement, please also provide detailed Use Cases for the workflows that this change would address.
This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact Change Requests. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes
Message 3 of 5

bhprest
Advocate
Advocate

@JimJiadid this end up getting submitted to the suggestions forum? Are there any plans to implement this functionality in the future?

 

0 Likes
Message 4 of 5

bhprest
Advocate
Advocate

@jeremytammik 

 

Hi Jeremy- sorry to pull you in on this as well. I wasn't sure if @JimJia was still active on this forum. Do you know off hand if this functionality is planned for in a future version?

0 Likes
Message 5 of 5

jeremy_tammik
Alumni
Alumni

Dear Ben,

 

Thank you for your query.

 

If you knew the inside of my head, you would know that I know very little off-hand.

 

That is why I write things down, for others and for myself.

 

Yes, indeed, Jim Jia is not very active here anymore.

 

Have you checked the Revit Idea Station for a corresponding entry, as he suggested?

 

If you can't find one, please submit it.

 

Whenever you require new or enhanced functionality, the Revit Idea Station is the place to go.

 

Please search there for a corresponding wish list entry for the suggested functionality and add your comments to it, or create a new one, if none already exists:

 

https://forums.autodesk.com/t5/revit-ideas/idb-p/302

 

Tag it as an API wish:

 

https://forums.autodesk.com/t5/revit-ideas/idb-p/302/tab/most-recent/label-name/api

 

Ensure it gets as many votes as possible to underline its importance to you and the rest of the developer community.

 

The Revit Idea Station is currently one of the main driving input forces for Revit API enhancements.

 

The Revit development team look there. Your comment here in the discussion forum might be overlooked.

 

Thank you!

 

Best regards,

 

Jeremy

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes