Skip to content
Discussion options

You must be logged in to vote

Dear jvela018,

Thanks for revisiting this. Your reply and suggestion, however, is wrong.

Your modification of my code in option 3 uses line.name to (correctly) provide a str to the context, but the line variable used in the loop is already a string. Therefore, your code directly returns and AttributeError ('str' object has no attribute 'name').

I include a screenshot below to help clarify the issue.

  • Top left you see the model with four of the polylines used (SampleLine01...04)
  • "B_rad for all polylines option 3", 4, 5, 6 show the plots created with the "option 3" I have provided.
  • "Calculator Expressions Plot 1" shows the goal plot, using all different contexts (Polylines) in the same plot.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jvela018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants