so I create my own pipe type, I have segmenst from 10 to 500. When i try to set it up with size Criterion it fail. for some reason min and max is not saved in class minimum stay null I try to psc.MinimumSize = 10; and still nothing
RoutingPreferenceRule option = new RoutingPreferenceRule(pipeSegment.Id, segmentName); PrimarySizeCriterion psc = new PrimarySizeCriterion(10, 500); TaskDialog.Show("", psc.MinimumSize.ToString()); if(psc.IsValidObject) { option.AddCriterion(psc); pipeType.RoutingPreferenceManager.AddRule(RoutingPreferenceRuleGroupType.Segments, option, 0); }
Solved! Go to Solution.
Solved by MarryTookMyCoffe. Go to Solution.
nvm i thing i figure it out
I am trying to also set the PrimarySizeCriterion, what is it that you did that worked? The docs don't really say how to use this.
If I remember correctly I forget to change value to a feet, there is a max cap on what size there can be.
That was very noobie mistake 😄
Documentation is not very good on it so, be ready on making a lot of debuging.
Can't find what you're looking for? Ask the community or share your knowledge.