Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS attributes in Revit #3595

Merged
merged 1 commit into from
Jul 26, 2024
Merged

QGIS attributes in Revit #3595

merged 1 commit into from
Jul 26, 2024

Conversation

KatKatKateryna
Copy link
Member

duplicating attribute receive functionality from GisPolygon to GisFeature

@KatKatKateryna KatKatKateryna requested a review from BovineOx July 26, 2024 16:32
Copy link
Contributor

@BovineOx BovineOx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels broadly okay but it does introduce tight coupling between GIS and Revit. I suggest you can @clairekuang agree this makes sense and socailise with @didimitrie also but happy to approve. If it's an a deeper issue then we can always back this out.

var traversal = new GraphTraversal(DefaultTraversal.DefaultRule);
var meshes = traversal.Traverse(gisFeature).Select(tc => tc.current).Where(b => b is Mesh);

speckleDirectShape.baseGeometries.AddRange(meshes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it okay if meshes is empty? could meshes be empty?

@@ -11,6 +11,34 @@ namespace Objects.Converter.Revit;

public partial class ConverterRevit
{
public ApplicationObject GisFeatureToNative(GisFeature gisFeature)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is creating a tight coupling between Gis and Revit, are we happy for this? We did discuss that we need to be careful when picking support for these workflows. I guess we've done it for other things but might be worth discussing with @clairekuang as well.

@KatKatKateryna KatKatKateryna merged commit eeb7161 into dev Jul 26, 2024
9 of 10 checks passed
@KatKatKateryna KatKatKateryna deleted the QGIS-attributes branch July 26, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants