VNhinh
June 23, 2018, 3:55am
1
I have been trying to retrieve Color patterns. I have seached this forum and have not yet found any post. I greatly appreciate any help or guidance anyone has to ofer. This is image.
You can achieve this with a slight modification of the code found here.
The reason why you are getting -1 is because the colours aren’t valid.
You could try this. It gets all the filters assigned to each view and then gets the filter overrides projection line colour and returns a Dynamo colour object if its valid:
[image]
#Copyright 2016. All rights reserved. Bimorph Consultancy LTD, 5 St Johns Lane, London EC1M 4BH www.bimorph.co.uk
#Written by Thomas Mahon @Thomas__Mahon info@bimorph.co.uk
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript…
No worries, please mark this topic as solved if my reply has provided what you needed.