Autodesk / civilconnection

CivilConnection enables the exchange of information between Civil 3D, Dynamo and Revit.
94 stars 43 forks source link

Empty Revit family created after Mass.ByShapesCreaseStations #66

Open mtanyer opened 10 months ago

mtanyer commented 10 months ago

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,

Lazarica-t commented 9 months ago

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

mtanyer commented 9 months ago

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

Lazarica-t commented 9 months ago

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 commented 9 months ago

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

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 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 6 months ago

Hi, your problem is related to the assembly that you have created, you have an extra link in there that should not exist :D this is why you are not getting the correct shape in Revit.

[image: image.png] When creating and assembly in Civil you need to take into account that Revit can only generate a solid for the most basic shapes rectangle, polygons, circles..so you need to construct your assembly using these building blocks :D

[image: image.png]

KR,

On Sun, Feb 18, 2024 at 11:13 PM alitaheri93 @.***> wrote:

I'm having the same issue, and I'm using Revit_2023 + C3D_2023 + CC_v6.00 (geometry scaling >> medium). I only get solid for my corridor surface (crown), but not the other layers. All of the layers are being transferred to Revit as closed polygons, but are not solid elements, but not selectable (however when I hover over each layer, Revit detects that layer through the entire corridor). I built the cross sections using Civil 3D subassembly composer and assigned shapes to all the layers (base, subbase, etc.). Is it related to the fact that I created all layers in relation to top surface and now it's not recognized as closed polygon? Or should I make some changes in my dynamo/civil3D when I'm transferring multiple layers? Screenshot.2024-02-18.160946.png (view on web) https://github.com/Autodesk/civilconnection/assets/46839412/4c4ca084-0755-4837-95d1-505149cfdfc0 Screenshot.2024-02-18.161013.png (view on web) https://github.com/Autodesk/civilconnection/assets/46839412/7478f974-bd9f-4a13-b3b7-725022ca8693

— Reply to this email directly, view it on GitHub https://github.com/Autodesk/civilconnection/issues/66#issuecomment-1951446773, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZOXV6SEBERH6PM65JAFKTYUJVJFAVCNFSM6AAAAAA6UW2EUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGQ2DMNZXGM . You are receiving this because you commented.Message ID: @.***>

--

Lăzărică Teșu, PhD | Structural Civil Engineer | @.***

ARCADIS Project Engineering | Str. Palat 1, Moldova Business Center, et. 3 | 700019 Iasi | Romania

M. + 40 749 88 21 42

www.arcadis.com https://www.arcadis.com/

allitaaheri commented 6 months ago

@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 commented 6 months ago

@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