Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


3 Pages<123>
Options
Go to last post Go to first unread
Offline hanskl  
#21 Posted : 10 December 2020 18:57:18(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Razonar Go to Quoted Post

Hi. That is what Ber's method of cycling the colors does with the graphs of the arrows of the vector field and the contour lines. Here as a program for a set of polygons, I suppose it works with those of your image.
Best regards.
Alvaro.


Thanks! A very neat way to cycle the colors, and I can easily manipulate what I want plotted in which color.

sys.PNG

The "null" values are generated as matrices [ , ] which does not plot, which is very nice. I saw another function to manipulate the plot colors (#9 by Davide Carpi), which generated scalars as "null" values, which plot as horizontal lines.

Maybe this can be nested in another function where the arguments are objects to be plotted for each color?

Best regards,

Edited by user 10 December 2020 19:10:49(UTC)  | Reason: Not specified

Offline hanskl  
#22 Posted : 10 December 2020 19:12:25(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Davide Carpi Go to Quoted Post
Good Good

Here a possible version of the function. I've found a bug in SMath (SS-2297), therefore I have introduced a offset parameter inside the function to move away the null values.

XYPlotGroupByColors.sm (32kb) downloaded 113 time(s).


Can this function be modified to generate vectors rather than scalars as "null" values?

Best regards,
Offline Razonar  
#23 Posted : 10 December 2020 19:14:05(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,370
Uruguay

Was thanked: 829 time(s) in 525 post(s)
Originally Posted by: hanskl Go to Quoted Post

The "null" values are generated as matrices [ , ] which does not plot, which is very nice. I saw another function to manipulate the plot colors, which generated scalars as "null" values, which plot as horizontal lines.

Maybe this can be nesten in another function where the arguments are objects to be plotted for each color?

Best regards,


Something like this? "Objects" in this case are always arrays n x 1, with elements as matrices m x 2. Other things could be functions with one free variable 'x' or text as arrays n x 3 (or 4 or 5), nothing else.

Clipboard01.gif

Best regards.
Alvaro.

Edited by user 10 December 2020 19:17:45(UTC)  | Reason: Not specified

Offline hanskl  
#24 Posted : 10 December 2020 19:42:39(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Razonar Go to Quoted Post

Something like this? "Objects" in this case are always arrays n x 1, with elements as matrices m x 2. Other things could be functions with one free variable 'x' or text as arrays n x 3 (or 4 or 5), nothing else.

Clipboard01.gif

Best regards.
Alvaro.


I cant get the new function to work.. any ideas?

Best regards,

test colors.sm (27kb) downloaded 10 time(s).
Offline Razonar  
#25 Posted : 10 December 2020 23:46:10(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,370
Uruguay

Was thanked: 829 time(s) in 525 post(s)
Originally Posted by: hanskl Go to Quoted Post
...
I cant get the new function to work.. any ideas?
...


Sure. Pray to the recurrence god ...

test colors.pdf (13kb) downloaded 7 time(s).

test colors.sm (17kb) downloaded 18 time(s).

Clipboard01.gif

Best regards.
Alvaro.

Edited by user 11 December 2020 00:03:53(UTC)  | Reason: Not specified

Offline Razonar  
#26 Posted : 10 December 2020 23:58:29(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,370
Uruguay

Was thanked: 829 time(s) in 525 post(s)
Originally Posted by: hanskl Go to Quoted Post
Originally Posted by: Davide Carpi Go to Quoted Post
Good Good

Here a possible version of the function. I've found a bug in SMath (SS-2297), therefore I have introduced a offset parameter inside the function to move away the null values.

XYPlotGroupByColors.sm (32kb) downloaded 113 time(s).


Can this function be modified to generate vectors rather than scalars as "null" values?

Best regards,


Hi. I can't, don't understand what Davide do, probably this works in the five years version old but not ritgh now. He is the expert.

Best regards.
Alvaro.
Offline Jean Giraud  
#27 Posted : 11 December 2020 00:25:20(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
What I am looking for is a way to oraganize the colors of this truss.
I want the truss in one color, the applied forces in a second color, and the reactions in a third color. Preferably I could also decide which colors to use.

This ~ 4 years old version works well, simply, no headache, no complain.

Utilities XY [Draw Truss Labels].sm (39kb) downloaded 14 time(s).


Offline hanskl  
#28 Posted : 11 December 2020 01:33:24(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Razonar Go to Quoted Post

Hi. I can't, don't understand what Davide do, probably this works in the five years version old but not ritgh now. He is the expert.

Best regards.
Alvaro.


Davide's function works very nicely on my version. My only "problem" is the "clutter" generated by the "null" values.

Best regards,

XYPlotGroupByColors truss.sm (49kb) downloaded 26 time(s).
Offline Jean Giraud  
#29 Posted : 12 December 2020 03:40:10(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
My only "problem" is the "clutter" generated by the "null" values.

Generate a typical clutter as per Davide, export, add/delete the blanking operator " "
" " = 10^10or else defined wrt Quick Plot max range that does not plot > 10^10.
Sorry, that's my understanding.

Hanski Project.sm (18kb) downloaded 16 time(s).

Offline hanskl  
#30 Posted : 14 December 2020 11:20:22(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
My only "problem" is the "clutter" generated by the "null" values.

Generate a typical clutter as per Davide, export, add/delete the blanking operator " "
" " = 10^10or else defined wrt Quick Plot max range that does not plot > 10^10.
Sorry, that's my understanding.

Hanski Project.sm (18kb) downloaded 16 time(s).



Thanks Jean, but that would be too much work Biggrin

Are you saying 2D plot does not plot values >10^10?

Cheers
Offline Jean Giraud  
#31 Posted : 14 December 2020 16:42:00(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
Are you saying 2D plot does not plot values

Yes, both X_Y and QuickPlot fly in the blue 10^10 and 10^-10.
In one of my X_Y that has very small Y, you must set the range Y first,
If not: crashes the plot and Smath as well.
It's a peanut work reproducing Davide original colors scheme.
1. generate a virgin collector { of the same size,
2. copy the Davide elements you want, paste in the the new collector
just as per the color sequence you want. Add/remove the blanking trace
as you wish. You can create any truss as you wish and arrows, labels,
dispose as per the colors sequence except black or else than native.
I guess you can have it on the X_Y plot as well w/o the blanking ""
and in any line color/size per list. X_Y does not support "" and is
not needed per list.
Observe, in Davide project, arrows are specific size/location.
You can have arrows from different creation all as you wish,
location/size/inclined/color/thickness ... hopefully on X_Y plot.
Let me cogitate ... Jean
Offline Jean Giraud  
#32 Posted : 14 December 2020 18:51:59(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Let me cogitate... Jean

Here is a project explorer suggestive of doing more or reorganizing the collection.
DO NOT attempt installing labels. X_Y will crashes on ".."
Repair, and re-spec !!!

Hanski Project Explorer.sm (22kb) downloaded 12 time(s).
Offline Jean Giraud  
#33 Posted : 14 December 2020 23:11:16(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... at this point, you can do what you want X_Y colors/thickness.
Davide had sized/disposed the arrows. You can have them from a more
general arrow creator ... ask for. Found no trick to dispose labels.
Be prudent on the icy roads, like us now ... Jean.

Hanski Project Explorer_1.sm (27kb) downloaded 13 time(s).
Offline Jean Giraud  
#34 Posted : 15 December 2020 03:12:32(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... here is a quick/minimalist arrow creator.

2D Util Bar Arrow Creator.sm (18kb) downloaded 11 time(s).
Offline Jean Giraud  
#35 Posted : 15 December 2020 04:40:06(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
... here is a quick/minimalist arrow creator.

Augmented version.

2D Util Bar Arrow Creator.sm (38kb) downloaded 23 time(s).
Offline hanskl  
#36 Posted : 16 December 2020 11:45:28(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
... at this point, you can do what you want X_Y colors/thickness.
Davide had sized/disposed the arrows. You can have them from a more
general arrow creator ... ask for. Found no trick to dispose labels.
Be prudent on the icy roads, like us now ... Jean.
[/attach]


Thanks Jean. My SMath terminates upon opening the sheets you shared. I have also found a similar way to generate arrows from this forum.

Attached you can find the whole sheet I have made to calculate the member forces and deflections of a braced frame. Please let me know if there are things to improve upon in the sheet.

Also, how do you guys add headings?

Best regards,

Braced frame.sm (339kb) downloaded 21 time(s).

Edited by user 16 December 2020 11:48:11(UTC)  | Reason: Not specified

thanks 1 user thanked hanskl for this useful post.
on 16/12/2020(UTC)
Offline Jean Giraud  
#37 Posted : 16 December 2020 17:59:00(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
Thanks Jean. My SMath terminates upon opening the sheets you shared. I have also found a similar way to generate arrows from this forum.

You are saying SS 7610 turns red the attached SS 6179.
It contradicts what I was told that SS more recent than SS 6179 should open
and at least points the incompatible region(s). That's for Designers/Doctors.
Your plot is red "strings not defined", can't trace in the collapsed regions.
Back to square 0. In few minutes, will post a global "Arrow Creator" [Samples].
You just need to relocate the red/green labels.
Cheers ... Jean

BraceFrame.PNG


Offline Ber7  
#38 Posted : 16 December 2020 18:12:21(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Hankl,maybe in one place You have a typo ((highlighted in red)
Minor cosmetic adjustments highlighted in yellow
Braced frame2.sm (345kb) downloaded 31 time(s).

Edited by user 16 December 2020 20:06:32(UTC)  | Reason: Not specified

Offline hanskl  
#39 Posted : 16 December 2020 20:07:33(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post

You are saying SS 7610 turns red the attached SS 6179.
It contradicts what I was told that SS more recent than SS 6179 should open
and at least points the incompatible region(s). That's for Designers/Doctors.
Your plot is red "strings not defined", can't trace in the collapsed regions.
Back to square 0. In few minutes, will post a global "Arrow Creator" [Samples].
You just need to relocate the red/green labels.
Cheers ... Jean



It crashes my SMath (appVersion(4)="0.99.7610.506"Wink. I do have the plugin Conditionally Formatted Label installed, you think that is the culprit?

The strings are defined in the area "BEREGNINGER" (cyan) / "GENERERING AV FIGUR (purple)

Cheers,
Offline hanskl  
#40 Posted : 16 December 2020 20:09:59(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Ber7 Go to Quoted Post
Hankl,maybe in one place You have a typo ((highlighted in red)
Minor cosmetic adjustments highlighted in yellow
Braced frame2.sm (345kb) downloaded 31 time(s).


Thank you very much Ber7 for reviewing my calculation!

I did not know of the identity () function, very clever.

With regards to the typo - I do not think it is a typo. I have also checked the results against Robot Structural Analysis, which gives the exact same results as my calculation.

Was there any reason you suspected it was a typo?

Best regards,
Users browsing this topic
Guest
3 Pages<123>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.