Hey everyone,
I hope you're all doing well. I'm currently working on a project involving Autodesk's DWG models and their Viewer API. I've run into a bit of a challenge and was wondering if anyone here might be able to help me out.
I'm trying to change the color of a specific block within a DWG model using the Viewer API. While I've been able to work with the API to view the model and make some basic adjustments, I'm not quite sure how to approach this particular task.
Has anyone had experience or knowledge about manipulating individual block colors using the Autodesk Viewer API? If you have any insights, advice, or even a code snippet to share, I would greatly appreciate it.
Thank you
Vyshakh
Solved! Go to Solution.
Solved by TheCADnoob. Go to Solution.
I assume you are using the web API made available through Autodesk Platform Services. If so you can query over there to see if you can find more answers.
Im speaking a little out side of my wheelhouse here, but have you been able to manipulate any of the properties of the block? If not you may need to consider how blocks live in drawings. They live a blocks and block references. The block is is definition and the block reference is an individual instance of the block. if you are making changes to the block definition it may not be reflected in an individual block reference.
CADnoob
Thanks, I was able to to create block reference for each block and retrieve the names. But now my task is to color it.I will post in the forum you provided,
Can't find what you're looking for? Ask the community or share your knowledge.