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

Empty Revit family created after Mass.ByShapesCreaseStations #66

Open
mtanyer opened this issue Oct 29, 2023 · 10 comments
Open

Empty Revit family created after Mass.ByShapesCreaseStations #66

mtanyer opened this issue Oct 29, 2023 · 10 comments

Comments

@mtanyer
Copy link

mtanyer commented Oct 29, 2023

Dear all,

I am trying to get my “BaselineRegion Assembly” as a Revit Adaptive Family via CivilConnection.

I can get the “Subassembly Names and Shapes”. I would like to use Mass.ByShapesCreaseStations for Revit family creation. However, the family created is empty.

Plase find the files at:

Any ideas on what the problem could be? Is Mass.ByShapesCreaseStations really working at CivilConnection 6.0.0?

I am using Revit 2024, Civil3D 2023 and CivilConnection 6.0.0.

Thanks,

@mtanyer mtanyer changed the title The path is not of a legal form Empty family after Mass.ByShapesCreaseStations Nov 16, 2023
@mtanyer mtanyer changed the title Empty family after Mass.ByShapesCreaseStations Empty Revit family after Mass.ByShapesCreaseStations Nov 16, 2023
@mtanyer mtanyer changed the title Empty Revit family after Mass.ByShapesCreaseStations Empty Revit family created after Mass.ByShapesCreaseStations Nov 16, 2023
@Lazarica-t
Copy link

Can you share the dynamo graph file? the .dwg input file would also help

@mtanyer
Copy link
Author

mtanyer commented Nov 16, 2023

Lazarica-t,
Please find them at this link:
https://drive.google.com/file/d/1ejh9eUsn9KRC2cQrxZ1l-E-WyZa7zL_O/view?usp=sharing
Thanks,

@Lazarica-t
Copy link

Hi, just some tips to make it run:
Project file: test_2.zip

  1. Set the Geometry scaling to Medium
    image
  2. You only need the Start and End station
    image
  3. Try to set up your Project Base Point in the same shared coordinates as your .dwg
    image
  4. Adjust corridor if necessary
    image

Best regards,

@mtanyer
Copy link
Author

mtanyer commented Nov 18, 2023

Dear Lazarica,
Thank you for your detailed tips. You basically recommended 4 tips:

  • Setting the geometry scaling to medium: Done.
  • Start and End stations: Done. Should this be the start and end stations for the whole corridor or for a specific baseline region (I have 4 baseline regions)?
  • Setting up Project Base Point: This has been done via exporting "Shared Reference Point" from Civil 3D than importing to the XML file to Revit.
  • Corridor adjustments for start and end points of different assemblies: I have 4 sections in the corridor:
    Road-1 : 0-300
    Tunnel : 300-1000
    Road-2 : 1000-2400
    Bridge : 2400-3200
    Road-3 : 3200-3601

With these 4 tips fulfilled, I cannot receive the Revit family as you did. What I am doing wrong? Do I need to use "AppliedSubassemblyShape.Geometry" for family setup?

The Dynamo code, Revit file with Project Base Point and the Civil 3D files are attached here:
https://drive.google.com/file/d/1RhUUkR-bwd3faZR8ZlG0n-XJ1_XO_Nuh/view?usp=sharing

There could be a scaling problem as well. The created scene is too small and not as expected as could be seen in the image.

I would appreciate for some extra tips.

Best regards,

@Lazarica-t
Copy link

Lazarica-t commented Nov 20, 2023

Hi, I think the script file might be bugged (or Dynamo for Revit 2024 itself.. not sure which)
Even though it says geometry scaling is set to Medium.. in reality it is not. Plus changing the scaling doesn't do anything with the script file received.
2023-11-20_17-17-58
I saved back the file using Dynamo from Revit 2023 with the correct geometry scaling and it works.
Civil_D219.zip
2023-11-20_17-28-59

Might also want to check the corridor in your last file, it was a bit broken for the tunnel region.

You can try remaking the script from scratch in Dynamo, maybe that will solve the Geometry scaling bug.

@mtanyer
Copy link
Author

mtanyer commented Nov 21, 2023

Dear Lazarica,

Thank you.

As you have indicated the Revit_2024 + C3D_2023 + CC_v6.00 combo is not working. Nothing appears on the screen.

Revit_2023 + C3D_2023 + CC_v6.00 is working. But why do I have lines but no solids on Dynamo and Revit screen?
Dyn
Rvt

Do I need to improve the Dynamo code to have solid Revit object on screen? Am I missing something?

Is it because of the "code sets" that I may have implemented wrong at the C3D side?

Best regards,

@Lazarica-t
Copy link

Lazarica-t commented Nov 21, 2023

This scenario were you only get lines happens due to the geometry scaling being set to large. Normally, you should be seeing the clear boundary of the assembly (closed polygons) just like you see them in the Civil3D assemblies. The solids are generated based on these closed polygons.
In your case it seems that the geometry scaling is still bugged.. have you tried with the dynamo graph from the previous reply Civil_D219.zip? I've tested it with Revit_2024+C3D_2023

@Lazarica-t
Copy link

Lazarica-t commented Feb 20, 2024 via email

@alitaheri93
Copy link

@Lazarica-t thanks for your response. I fixed the issue by removing the extra link in the subassembly composer. I'm facing another issue now. I have multiple baseline regions with different subassemblies and I'm trying to follow your guideline and run the code for each region separately to avoid the gaps between solids. However, I'm not getting the sequence of elements, but only one element at a time. So, when I go from region 1 to region 2, it only generates region 2 while replacing it in region 1 for some reason. On another note, is there a way to create separate elements based on station numbers using civilconnection package? For instance, instead of getting one element for region 1, I can get 10 elements based on my stationing.

@Lazarica-t
Copy link

@alitaheri93
I'm not sure I fully understood what you are trying to do, but when you are dealing with regions that have different assemblies in the same corridor you will need to make some temporary changes, rebuild the corridor then run the script to get the correct shape (see picture bellow):
2024-03-02_15-56-51
Yes, you can specify and generate elements between your desired stations, the node allows this:
2024-03-02_16-40-13

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

No branches or pull requests

3 participants