strusoft / femdesign-api

FEM-Design API
https://femdesign-api-docs.onstrusoft.com/
MIT License
38 stars 20 forks source link

Create Grasshopper examples #34

Open xRadne opened 3 years ago

xRadne commented 3 years ago

Create examples for user to get started (and explore possibilites) with the API.

To start with, all the examples should be made for Grasshopper. Preferably all examples should have an equivalent in C#, Dynamo as well, but for now only the most basic examples should be created.

Instructions on getting started

Basic examples to implement (Scripts)

Practical examples to implement (Scripts)

Wishes from customers

Possible examples (to be considered)

JRiad commented 2 years ago

I think we need to have

  1. Basic examples for understanding and learning how to use the API
  2. Practical examples on what you actually want to do with the API, "real world problems"

Some (relatively simple) real world problems should be prioritized as they explain why you should even use the API

JRiad commented 2 years ago

@xRadne and @samnyb , I guess we should update examples to FD 21 version. Because they were made for FD 20 right?

xRadne commented 2 years ago

I agree! However it is not required since the API is backward compatible, meaning all grasshopper scripts made in v20 can be used with API v21. But it will have an OLD tag

The same goes for Dynamo.

But not C#, but it will give clear hints on what needs to be fixed,

xRadne commented 2 years ago

I agree! However it is not required since the API is backward compatible, meaning all grasshopper scripts made in v20 can be used with API v21.

The same goes for Dynamo.

But not C#, but it will give clear hints on what needs to be fixed,

Include this in documentation #35. Ping @andosca

xRadne commented 2 years ago

@samnyb I think the About component #189 should be added to all scripts as well.

image

samnyb commented 2 years ago

@xRadne and @samnyb , I guess we should update examples to FD 21 version. Because they were made for FD 20 right?

@samnyb I think the About component #189 should be added to all scripts as well.

I'll put both these things on my to-do-list!

andosca commented 2 years ago

I agree! However it is not required since the API is backward compatible, meaning all grasshopper scripts made in v20 can be used with API v21. The same goes for Dynamo. But not C#, but it will give clear hints on what needs to be fixed,

Include this in documentation #35. Ping @andosca

There is not any clear distinction between FD21 and FD20. For now it is backwards compatible as no xml-schema changes were introduced.

JRiad commented 2 years ago

Is it really backwards compatible all the way? I thought some components may have a changed number of inputs or have some changes, making it necessary to replace them. I think it would be nice at least to check that they work in FD 21

xRadne commented 2 years ago

Is it really backwards compatible all the way? I thought some components may have a changed number of inputs or have some changes, making it necessary to replace them. I think it would be nice at least to check that they work in FD 21

If the grasshopper plugin is not backwards compatible: It's a bug. The components we have changed should be functioning but marked as OLD.

samnyb commented 2 years ago

@xRadne and @samnyb , I guess we should update examples to FD 21 version. Because they were made for FD 20 right?

@samnyb I think the About component #189 should be added to all scripts as well.

I'll put both these things on my to-do-list!

samnyb commented 2 years ago

Possible improvement of bridge example: using the Perp Frames component instead of orienting planes along axis. Cuts 7-8 components per flange. I haven't tested if it's a complete match in functionality though, so I'll have to get back to it at a later point.

samnyb commented 2 years ago

22/03/16: Add Python filepath component and logotype to all existing examples

samnyb commented 2 years ago

2022-03-24: Load combination factors apparently in wrong order in example 2.

xRadne commented 2 years ago

We should create these examples in C# as well. These examples should be equivalent so that a user familiar with one framework could easily compare c# to grasshopper (and eventually python and/or dynamo)

samnyb commented 2 years ago

FemDesign.Examples migration

We have initiated the process of migrating examples from FemDesign.Samples to a future directory called FemDesign.Examples. Progress on this is mapped in #203.

samnyb commented 2 years ago

@xRadne when you have time, I would like to merge branch 34 to master to set Example 7 in the right folder, and also rebase (?) branch 34 so the new structure is applied there as well, and all duplicate files removed. I still feel a little unsure around merging, so I would like your support, as well as a green light of the whole process, of course.

xRadne commented 2 years ago

@xRadne when you have time, I would like to merge branch 34 to master to set Example 7 in the right folder, and also rebase (?) branch 34 so the new structure is applied there as well, and all duplicate files removed. I still feel a little unsure around merging, so I would like your support, as well as a green light of the whole process, of course.

Example 7 added to master branch