Hello everyone,
I want to change the scale value when duplicate.
Is it possible using Revit API?
Hi @hai_nn,
May you take a look at this blog: https://thebuildingcoder.typepad.com/blog/2014/04/wpf-fill-pattern-viewer-control.html .
Also, this forum thread got some insights on how to go about it: https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-get-import-scale-value-of-a-fill-pa...https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-get-import-scale-value-of-a-fill-pa...
I couldn't find the answer on that forum.
Please give me the answer to this question.
I submitted this issue to the enginering team for consultation and maybe a workaround. Here is the resonse I got:
'I was able to learn the following. The recommended workflow through the UI is to duplicate and change the import scale. However, the scale is not directly exposed through the API. It is possible to get/set FillGrids and to get/set FillGrid's Segments. Therefore, it possible to reproduce the UI workflow through the API to some extent, by duplicating a pattern and then scaling its contents directly. There is some missing information. First of all, the import scale value. Second, it is necessary to adjust "window size" (a hidden property of the pattern) after setting the fill grids.'
Kindly, attempt above and see if you can come up with some sort of workaround.
Can't find what you're looking for? Ask the community or share your knowledge.