Giter VIP home page Giter VIP logo

civilconnection's People

Contributors

paoloemilioserra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

civilconnection's Issues

Package not showing up

I installed version 3.0, but it's not showing up in Dynamo. I have Dynamo from Civil3D 2.1.1. Do I need to have Revit 2020 installed?

Mass.ByShapesCreaseStations Issue

Hi,

The node Mass.ByShapesCreaseStations does not seam to be working properly in the latest version 4.0.3, it's only generating a single good family and the rest are empty families.
In the a previous version 3.0.8 the node was working properly.

See images below.

CivilConnection vs 4.0.3:
image

image

CivilConnection vs 3.0.8:
image

Best regards!

IFCExport - if solid files is open as read-only return error

Hi Paolo,

A colleague found that IFC Export is not working if the file is open as read-only. We use a file management system and to be sure that the file remain the same as the file on CDE we open it as read-only. I'm not sure why is needed to be saved after the geometry is back on the initial position, but an try and catch system for error is good there where the file is saved.

image

This is the error if I put this in a python node, with my old branch (in the original master is line 1480 or something like that).
image

Baseline.GetFeaturelinesByCode

Paolo,

What is the reason you changed to old code to getting the data from the xml?
Can I re-instate the old code, under another name? I realy do not like all the xml stuff if I can access the data directly.
I also want to add getting featurelines from offset-alignments

Regards,

Bart

RevitUtils.CreateFamilyInstance

Hi,

I keep running into an issue with the RevitUtils.CreateFamilyInstance node. IF you provide it with a range of station values it places the first and then it produces nulls. I have done this before and then It worked.

2020-01-20_07h05_44

Baseline.GetFeaturelinesByCode

I run into an issue where the Baseline.GetFeaturelinesByCode results in an empty list. If I use the node Baseline.GetFeaturelinesByCodeStation with the same inputs and a station value then this node does produce a fature line.
2019-12-01_08h56_35

Featureline.PointAtStation still getting point when point is not lying on the featureline

Hi,
In Civil 3D file, the corridor contains only 1 baseline while having 2 baseline regions. Due to which it creates 2 featurelines for same point code. Also, the baseline is made up of very long alignment, due to which whenever I used the node Featureline.PointAtStation giving any station value outside the start and end point of featureline (but the station value withing the alignment station range), I am getting a point. Instead of getting point value, it should give an error or null value for a point.

CivilConn_PointAtStation

CivilConn_PointAtStation2

I also checked the old code of CivilConnection, it was as below:
`public CoordinateSystem CoordinateSystemByStation(double station, bool vertical = true)
{
Utils.Log(string.Format("Featureline.CoordinateSystemByStation started...", ""));

        CoordinateSystem cs = null;
        CoordinateSystem output = null;

        if (Math.Abs(station - this.Start) < 0.00001)
        {
            station = this.Start;
        }

        if (Math.Abs(station - this.End) < 0.00001)
        {
            station = this.End;
        }

        //bool findIntersection = true;

        if (station < this.Start || station > this.End)
        {
            var message = "The Station value is not compatible with the Featureline.";

            Utils.Log(string.Format("ERROR: {0}", message));

            //findIntersection = false;
            //return null;
        }

        cs = this._baseline.CoordinateSystemByStation(station);

        Utils.Log(string.Format("CoordinateSystem: {0}", cs));`

and in the new version of code :
` public CoordinateSystem CoordinateSystemByStation(double station, bool vertical = true)
{
Utils.Log(string.Format("Featureline.CoordinateSystemByStation started...", ""));

        CoordinateSystem cs = null;
        CoordinateSystem output = null;

        if (Math.Abs(station - this.Start) < 0.00001)
        {
            station = this.Start;
        }

        if (Math.Abs(station - this.End) < 0.00001)
        {
            station = this.End;
        }

        if (station < this.Start || station > this.End)
        {
            var message = "The Station value is not compatible with the Featureline.";

            Utils.Log(string.Format("ERROR: {0}", message));
        }

        cs = this._baseline.CoordinateSystemByStation(station);

        Utils.Log(string.Format("CoordinateSystem: {0}", cs));`

CivilConnection_temp.log

Requesting you to look into this issue.

Thanks
Atul Tegar

GetPointGroups error

Which version are you using?
we have our internal version, but is base on your version 4.0.4
What did you do? (Steps to reproduce)

1. Open a new Civil3D file
2. Add a point group from Dynamo
3. Read the points groups => works fine
4. Go to Civil3D, delete all poins from document
5. Read the points group => no points in document, empty list => works fine
6. Add a new point group form Dynamo
7. Read the points groups => didn't works

What did you expect to happen?
_To get the current points from Civil3D file. _

What did happen instead?
return an error: The parameter is incorrect.

The points are read from document by index in points list, but the provided number as index represent the point number not the index. The actual solution works fine only if no point is deleted because only in this case the index == point number.

dynamo defintiion
cogo points.zip

solution:

change the below line

AeccPoint p = doc.Points.Item(i - 1);

with:
AeccPoint p = doc.Points.Find(i);

Mass.ByCrossSections distorted form

Hi!

Not sure if the Mass.ByCrossSections node is working properly, but the resulting form seems to be distorted.
It might be a Revit Issue, but just cheking.
See images below:

image
image

Best regards,

Corridor.GetFeaturelinesByCode - Question

Hi Paolo,

I have a question regarding how the Corridor.GetFeaturelinesByCode node works.

  1. When working with more complex corridors that are made up of a couple of regions the node gives me a Featureline for each region, what is a bit unclear is why doesn't the start and end of these Featurelines match with the stations in Civil.
    In the CivilConnection versions prior to 5.0.0 I was getting 1 single Featureline for the entire corridor regardless of how many regions is was made up, which was pretty convenient.
    Is the node working as intended?

image
image

  1. If we do a Featureline.PointAtStation on any of the resulting Featurelines (even with station values that are out of range of the featureline Start - End) I am receiving the expected points which is a good thing and also a bit cofusing..doesn't the node take into account the Start - End of the Featureline?

image

Best Regards! :)

AppliedSubassemblyShape issue.

Hi,

There seams to be am issue with the AppliedSubassemblyShape's that I get from the nodes BaselineRegion.Shapes and Corridor.Shapes when dealing with certain types of Corridors.
The problem I'm facing is when I have a corridor made up multiple Regions with different Assemblies, see example below:
image
Red = 1st Sub-Region with it's respective Assembly
Blue = 2nd Sub-Region with it's respective Assembly

As you can see the two Sub-Regions form a continuous Region with station 104.78 being common.

I've noticed some time ago that I get some gaps in the Mass's obtained using Mass.ByShapes nodes, but did not quite understand why this was happening
image
So the conclusion that I arrived at is that is has something to do with the Subassembly Shape not being properly detected at the intersection of the 2 Sub-Regions.

For some reason the Assembly at station 104.78 where the two Sub-Region's intersect is taken from the previous Sub-Region 1 when in reality it should be from the second one.
image

I'm assuming the *.Shapes nodes are trying to avoid 2 Assembly instances existing at the same location.. is this correct? Or is there another explanation..
Is there any solution when faced with Corridors that have multiple Regions with different Assemblies?

Thank you!

Featureline.Start and Featureline.End Values are a bit off

Hi!

There might be a bug with the Featureline.Start and Featureline.End blocks, the values I'm getting are a bit off compared to the old version of CivilConnection.
The correct values should be 1090 and 4340 respectively, as they are defined in the civil corridor.
See attachments bellow:

Old_Vs
New_Vs_304

Kind regards,

Civil Connection for Revit 2022

Hi there,
Revit 2022.1 being in the pipeline, I don't know how much effort it represents to port it to revit 2022?
nice tool

unable to run civilconnection2019 after installation of Civil3D2020

I am trying to run a dynamo script from within a family which previously worked without any problems. After some time, in which I installed Civil3D 2020 and got a new company virusscanner, I get the following error:
Image 077
CivilConnection still runs fine from a Revit project, it's only from a family that I get the error. Is this a known issue and how do I fix it.

Kind regards, Jaco Romkes

Read featurelines from a corridor with regions from DataShortcut

Hi @paoloemilioserra,

I glad to work again with CivilConnection, but there are few things that are challenging me. Not sure if in your previous versions works to read featurelines from corridors as reference from data shortcut but I think yes, if I remember correctly. The problem is when a reference corridor from data shortcut have regions. These regions return nulls in the code and the featureline cannot be created because the stating and end station cannot be computed.

I took the Roadway corridor from your dataset, split that one in 3 regions and I create a reference in a new drawings.
image
When I read the featureline from the source drawing everything is fine but reading featureline from reference corridor from data shortcut give nulls.
image

I create a new branch and changed the code a little bit, but I cannot push my fork with the changes. So here my changes:
for baseline.cs

     public double[] GetArrayStationOffsetElevationByPoint(Point point)
       {
           Utils.Log(string.Format("Baseline.GetArrayStationOffsetElevationByPoint started...", ""));

           AeccAlignment alignment = this.Alignment.InternalElement as AeccAlignment;

           double station = 0;
           double offset = 0;
           double elevation;

           alignment.StationOffset(point.X, point.Y, out station, out offset);

           try
           {
               double profileStart = this._baseline.Profile.StartingStation;
               double profileEnd = this._baseline.Profile.EndingStation;
               if (profileStart > station && Math.Abs(profileStart-station) < 0.001)
               {
                   station = profileStart;
               }
               else if (profileEnd < station && Math.Abs(profileEnd - station) < 0.001)
               {
                   station = profileEnd;
               }
                   elevation = point.Z - this._baseline.Profile.ElevationAt(station);
           }
           catch
           {
               elevation = point.Z - PointByStationOffsetElevation(station, offset, 0).Z;
           }

           Utils.Log(string.Format("Baseline.GetArrayStationOffsetElevationByPoint completed.", ""));

           return new double[] { station, offset, elevation };
       }

for featureline.cs:

        internal Featureline(Baseline baseline, PolyCurve polycurve, string code, SideType side, int regionIndex = 0)
        {
            this._baseline = baseline;
            this._polycurve = polycurve;
            this._code = code;
            this._side = side;
            this._regionIndex = regionIndex;
            try
            {
                var region = this.Baseline.GetBaselineRegions()[this._regionIndex];
                this._start = region.Start;
                this._end = region.End;
            }
            catch
            {
                this._start = Convert.ToDouble(baseline.GetStationOffsetElevationByPoint(polycurve.StartPoint)["Station"]);
                this._end = Convert.ToDouble(baseline.GetStationOffsetElevationByPoint(polycurve.EndPoint)["Station"]);
            }

        }

for profile.cs: - also to ignore the error when there is a very small difference between starting station of the profile and starting station of the baseline.

        public double GetElevationAtStation(double station)
        {
            //ignore if error is less than 1mm
            if (this.StartStation > station && Math.Abs(this.StartStation - station) < 0.001)
            {
                station = this.StartStation;
            }
            else if (this.EndStation < station && Math.Abs(this.EndStation - station) < 0.001)
            {
                station = this.EndStation;
            }

            return this._profile.ElevationAt(station);
        }

Can you try these changes in the corridor (to have regions on a reference corridor from data shortcut) and read the featurelines? There is another better approach for that? My code still give errors if the featureline have the same code: at intersection with another corridor where is a new road line give errors - the featureline jump from one line to another =>in few particular cases, the station computed with my code differ from the baseline region start / end station.

tretr

Install not functioning as expected

Hello,

Im trying to install on C3D 2019, Revit 2019 and Dynamo 2.0.3.8811

First ,I copied the Zip file found in "Dynamo_CivilConnection\civilconnection-master\Compiled\2019" to the dynamo Revit packages and extracted in the folder.

Secondly, i edit the xml file to later find out i did not have to do this step, then i installed the CivilPython.dll to the following route "C:\ProgramData\Autodesk\ApplicationPlugins\CivilPython.bundle" i am able to execute the python, -python command in the cmd, and made it always loadable in C3D

Then i set civil 3d in imperial system, and civil 3D workspace, i opened revit imperial as well, i imported and acquired the coordinates from the DWG file.

I expected to see the the package in the dynamo library UI but it wont show the package or its nodes.

image

Any help or suggestion would be appreciated, thank you!

Featureline.PointAtStation elevation values

Hi,

There seams to be a loss in precision for the Z values of the featureline points when the input station has a precision greater the 0.1 digits. This loss in precison is only present if the station is close to a PVI point.

As an example, what I've encountered, for a corridor at the station 166.25 I am getting in Civil 3D an elevation of 2.641m for the baseline and the featureline (the mark point for the featureline just having a 3m offset from the baseline, so the elevations should always be the same for both of them).
When I read the elevations at the same station in Dynamo I get a small difference of a few milliliters.

Normally I would just ignore this small loss in precision but in my case it does effect the model I'm trying to create in Revit.

Not sure if anything can be done to improve or fix this, but other users might want to be aware of this of this.

Best regards!
Bellow are some screens to show the issue, in which I sample the point values at stations 166, 166.2 and 166.25.
image
image

Can't connect to civil 3d

I have been through the installation for 2018 and 2019 versions of Revit and C3d and cannot get the CivilApplication node to connect to civil 3d.

I have a tried a long list of fixes but always get the same result, can anyone help?

The installation guide says this error is a conflict between versions so i have removed the 2018 version and reinstalled dyanmo but it still doesn't work.

CivilApp Error

CoordinateSystemByStation when station is not in featureline start end stations range

Hi Paolo,

I try to create CoordinateSystemByStation from a list of stations. Not all stations are in the featureline start end stations range. I know the stations can be filtered in Dynamo to keep only what is in featureline range but I'm looking to see if this can be done easily in C#, not each time for each Dynamo graph. I was looking in the log file and I have these events for a success CS and for an error:

[14/05/2019 21:47:02] Featureline.CoordinateSystemByStation completed.
[14/05/2019 21:47:02] Featureline.CoordinateSystemByStation started...
[14/05/2019 21:47:02] Baseline.CoordinateSystemByStation started...
[14/05/2019 21:47:02] Baseline.PointByStationOffsetElevation started...
[14/05/2019 21:47:02] Baseline.PointByStationOffsetElevation completed.
[14/05/2019 21:47:02] Baseline.CoordinateSystemByStation completed.
[14/05/2019 21:47:02] CoordinateSystem: CoordinateSystem(Origin = Point(X = 149665.149, Y = 213847.196, Z = -15.485), XAxis = Vector(X = 0.844, Y = -0.537, Z = 0.000, Length = 1.000), YAxis = Vector(X = 0.537, Y = 0.844, Z = 0.000, Length = 1.000), ZAxis = Vector(X = 0.000, Y = 0.000, Z = 1.000, Length = 1.000), XScaleFactor = 1.000, YScaleFactor = 1.000, ZScaleFactor = 1.000)
[14/05/2019 21:47:02] Intersections: 1
[14/05/2019 21:47:02] Distance: 1.95172764188092
[14/05/2019 21:47:02] Point: Point(X = 149663.504, Y = 213848.243, Z = -15.567)
[14/05/2019 21:47:02] Featureline.CoordinateSystemByStation completed.
[14/05/2019 21:47:02] Featureline.CoordinateSystemByStation started...
[14/05/2019 21:47:02] Baseline.CoordinateSystemByStation started...
[14/05/2019 21:47:02] Baseline.PointByStationOffsetElevation started...
[14/05/2019 21:47:02] Baseline.PointByStationOffsetElevation completed.
[14/05/2019 21:47:02] Baseline.CoordinateSystemByStation completed.
[14/05/2019 21:47:02] CoordinateSystem: CoordinateSystem(Origin = Point(X = 149665.149, Y = 213847.196, Z = -15.485), XAxis = Vector(X = 0.844, Y = -0.537, Z = 0.000, Length = 1.000), YAxis = Vector(X = 0.537, Y = 0.844, Z = 0.000, Length = 1.000), ZAxis = Vector(X = 0.000, Y = 0.000, Z = 1.000, Length = 1.000), XScaleFactor = 1.000, YScaleFactor = 1.000, ZScaleFactor = 1.000)
[14/05/2019 21:47:02] Intersections: 0
[14/05/2019 21:47:02] Distance: 1.79769313486232E+308
[14/05/2019 21:47:02] Point: 
[14/05/2019 21:47:02] ERROR: Point is null.
[14/05/2019 21:47:02] Featureline.CoordinateSystemByStation completed.

I stop the script because was taking to much time. I have ~600 stations and ~180 small featurelines (a lot of baseline regions :( ). The log file is about 50MB and growing faster.

There is any option to skip a station from beginning of the method if it is not between start and end station? I see that the null point is replaced with start / end point after method try to find the intersection point with the featureline polycurve, but what if that is will be done from beginning?

Something almost the same is made already for Baseline.CoordinateSystemByStation. Indeed Featureline.CoordinateSystemByStation have an error The Station value is not compatible with the Featureline. but this is returned if Baseline.CoordinateSystemByStation return null.

What do you think about this?

CivilConnection 2021 Signed Certificate

The civil connection 2021 package fails to load with the following error: "A package called CivilConnection2021 found at C:\ProgramData\Autodesk\RVT 2021\Dynamo\2.6\packages\CivilConnection2021 could not be verified to have signed dll files. A dll file found at C:\ProgramData\Autodesk\RVT 2021\Dynamo\2.6\packages\CivilConnection2021\bin\Autodesk2021.dll did not have a signed certificate. Ignoring it."

I have unblocked the .dll .xml and .json files in the package.

CivilApplication node changes Revit units

When using the node "CivilApplication.CivilApplication" in a script, units in Revit change from mm to m. Is this a bug or a feature?:)

CivilConnection2020 4.0.4
Dynamo Core 2.3.0.5885
Dynamo Revit 2.3.0.6270
Revit 2020.2

Regards
Klaus Bang
NTI A/S

Alignment.GetCurves issue

Hi,

The node Alignment.GetCurves does not seem to be working properly in update 5.0.0
For some Alignments I receive this error:
image

Previous version 4.0.4 no issues:
image

Code fault seems to be here:
image

KR,

CivilSurface Region Format issue

Hi Paolo,
this is related to issue #24
Is there a way to change something that there is no need to change the region formats?
I am working in Germany and because of that issue I cant get it work. When I change the region format to English(US), it works. But I cant change that for all my colleagues who want to use it.
I have tried to change that via python before the normal script starts and at the end to change it back to german, but it doesnt work till now.
Your help would be much appreciated.

Alignment.GetCurves()

Hi,
the calculation of the NurbSplines seems not to be correct.
Here the civil alignment
image

and here the result in revit
image

Shapes - Points with Z = NaN

Hello,

For some corridors at shapes extraction in the XML file the points are with Z = "NaN"

<Point X="151694.415803228" Y="214708.731402295" Z="NaN" />
<Point X="151694.433035345" Y="214704.931441367" Z="NaN" />
<Point X="151694.433035345" Y="214704.931441367" Z="NaN" />
<Point X="151694.415803228" Y="214708.731402295" Z="NaN" />

From this the shapes are not read. In BaselineRegion I change line 387 and replace with:
if(x.ToString() != "NaN" && y.ToString() != "NaN" && z.ToString() != "NaN") { points.Add(Point.ByCoordinates(x, y, z)); }

For the moment works fine for me with this change but I'm not sure if should be something more. Convert.ToDouble should return 0 if value is null but it return NaN - maybe the IFormatProvider is wrong)

CivilPython doesnt work

I cant get Civil Connection 2020 to work I think due to CivilPython not working.
After setting CivilPython.dll to unblocked when I try to run the Command PYTHON inside Civil3d I get an unhandled exception.

Could not load file or assembly 'Microsoft scripting. Version=1.1.0.20,Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependancies. The system cannot find the file specified.

In Dynamo I get the same error as though I have a mismatch between applications and the Civil Connection version which I do not

edit .. (Autodesk support sent me here)

not creating xml file in TEMP folder

Hi,
I am using Civil Connection 2018 with Civil 3D 2018 and Revit 2018.
Whenever I use the node Corridor.GetCodes or Corridor.GetFeaturelines, Dynamo is not responding.
May be it is because of, in the new version of Civil Connection, corridor featurelines are exported to XML file in TEMP folder and in my case it is not creating any XML file, it stucks there.
But whenever I used the previous version of Civil Connection (2.0.4) it works perfectly, because it is not exporting any data to XML, it directly reads from Civil 3D.

Thanks
Atul Tegar

CivilPython unable to load standard libraries

Hi,
I'm using CivilPython with Civil 3D 2020.
I'm not able to import standard libraries such as os. Here's the code:

import os

And the Exception thrown:

Traceback (most recent call last):
File "....\script.py", line 1, in <module>
ImportError: No module named os

Please give some instructions on how to attach IronPython Standard Library to CivilPython.

Thanks!

Featureline.CoordinateSystemByStation return null

Hi,

There is an error on Intersection method from Dynamo. It's a little bit strange for me, when a featureline polycurve is intersected with a plane XZ of a coordinate system from the Baseline return a list of nurbs. If each curve of the polycurve is intersected with the plane XZ from coordinate system everything works fine. Also if I make a surface on that plan and intersect with the polycurve, works fine.

Capture

I try something like in below code and works fine, but I'm not sure if it's safe for large amount of data or not. Today trying this changed method on large list, Revit close without any message. Not sure if the issues is from here or from another part.

Plane plane = cs.ZXPlane;
                //max distance of surface to intersect the polycurve
                double maxDistForIntersect = 1000;

                Plane plane = cs.ZXPlane;
                Rectangle rec = Rectangle.ByWidthLength(plane, maxDistForIntersect, maxDistForIntersect);
                Surface recS = Surface.ByPatch(rec);
                PolyCurve pc = this._polycurve;

                Point p = null;
                double d = double.MaxValue;
                dynamic rezIntersect = recS.Intersect(pc);
                foreach (var result in rezIntersect)

If there is another better solution for this issue, when Featureline.CoordinateSystemByStation return null (Error - Point is null), please let me know.

CivilSurface not working correctly

Hi Paolo,

I have tried the new CivilSurface Nodes in your package, but it doesnt work unfortunately.
So Im able to get the CivilSurface, but as soon as I want to get the Surfaces from a small DTM with the "CivilSurface.GetTrianglesSurfaces" Node, my Dynamo is loading and nothing happens anymore. (for more than 1 hour).
When Im using the second node "CivilSurface.GetTrianglesSurfaces" with XML Path, my Dynamo is crashing.
Any idea what could be wrong?

CivilConnection and BIM360

When working on the local copy / cached Model of a BIM360 file the node: Mass.ByShapesCreaseStations can't create families. If the Revit model is taken of the cloud and saved as a 'regular' Revit central file and then the same script does works.

Suggestion: check the method with which you are getting the path of Revit file. In another application we have seen that to get this path you have to use different methods for BIM360.

Mass.ByShapesCreaseStations - Family save location

Hi Paolo!

Is it possible to change the save location for the families that are generated with Mass.ByShapesCreaseStations? (btw it's Crease? not Create in the node name)

I have some projects saved on BIM360 Docs and when I run the scrip it does not save/create the families, but if I detach the project locally it's all good. So I'm thinking it's because it can't access the BIM360 folder maybe.

Best regards!

Corridor.GetFeaturelinesByCode - unhandled exception in Civil 3D

Hi Paolo,

I seam to be getting a Civil 3D error when using the Node Corridor.GetFeaturelinesByCode for some civil files, other files ones work just fine. After the error Dynamo gets stuck in a loop and nothing happens. I have attached the full details description of the error.

I've tested this with Revit-Civil 2018, Revit-Civil 2019, Revit-Civil 2020 with the CiviConnection 3.0.8 and the same error pop's up.

The curious thing is that the node Corridor.GetFeaturelinesByCodeStation works! With no errors on the same files that I'm getting the mentioned error.

image
Civil 3D error.txt

Small update:
I've installed an old version of CivilConnection 1.0.19 with it's CivilPython.bundle and it has no issues, the node does not give me an error.

Even more strange is that I've uninstalled that old version of CivilConn and went back to CivilConn 3.0.8 and now the node works, for the moment at least. This is so confusing.

Kind Regards!

Pipe.ByCurve DocumentTotalTransform Failed Error

Which version are you using?
Revit 2020, Dynamo 2.3, Civil Connection 4.04

What did you do? (Steps to reproduce)
Tried making pipes from a bunch of lines
Got the Pipe Type (All PipeTypes in Revit doc, filtered By name)
Got the Pipe System Type (All PipeSystemTypes in Revit doc, filtered By name)
Got a Level

  1. Plugged everything in and the Pipe.ByCurve Failed.
  2. Looked in the Log file of Civil Connection to see what happend:
  • [2-4-2020 9:22:57] Pipe.ByCurve started...
  • [2-4-2020 9:22:58] RevitUtils.DocumentTotalTransform started...
  • [2-4-2020 9:22:58] RevitUtils.DocumentTotalTransform completed.
  • [2-4-2020 9:22:58] Pipe.ByCurve completed.

Result is a warning: Pipe.ByCurve operation Failed

  1. This looks odd, I didn't use this Node in Dynamo --> Checked Source Code. The Pipe.ByCurve function uses this function (why? the curves don't need Translation)
  2. Checked the RevitUtils.DocumentTotalTransform Node in Dynamo. This doens't return anything (not even null...) Also no warnings/errors

What did you expect to happen?
To create a bunch of pipes.

  1. I tried it with a template file, (Basepoint and Survey point both 0,0,0)
  2. drew a line and used the nodes again, everything worked fine.

Suggested Solution
Remove the DocumentTotalTransform function from the Pipe.ByCurve node, because it is not helpful if the lines don't come from Civil and are already translated to Revit Coordinate System.

Also check what went wrong in the Document Total Transform function and Log the Errors.

PipeBuCurve

Suggestion - WriteToLog Node

Hi Paolo,

What about a node to write text in CivilConnection_temp log file? It's more easy for users to see what Dynamo do while they are waiting or if Dynamo clash we can see what was the last thing made.
It's really easy to look at the log file and is very useful.
image
We can implement another log file but is more simple to have all about our scripts in only one log file.

Unable to run CivilConnections 2020

We are experiencing
Warning: CivilApplication..ctor operation failed.
Value cannot be null.
Parameter name: path1
from the CivilApplication node.

Tried both the new version installed through package manager and version 3.08.
I only have 2020 versions of both Revit and Civil3d installed currently.
I have Dynamo Core 2.3 and Dynamo Revit 2.3 installed.

AppliedSubassemblyShape Issue

Hi Paolo,

Not sure if this is a Dynamo issue or more of a Civil3D issue, but maybe you have come across this and have some tips.

So I was testing out the workflow that uses the AppliedSubassemplyShape nodes and for some reason the geometry that I get in Dynamo for the Civil 3D Assemblies is incomplete (see images below):

image
image

Best regards!

Node "CivilSurface.JoinSurfaces" Erro

releases here https://github.com/Autodesk/civilconnection/releases/tag/2023

Originally posted by @paoloemilioserra in #59 (comment)

Thank you for your feedback, but I detected the possibility of an error in the "CivilSurface.JoinSurfaces" node, it does not join the input surfaces..
As an example follow this tutorial with several different surfaces and there was no success...
CivilConnection: Revit, Dynamo, Civil 3D (Povrch TIN na topografii / Surface TIN to Topography)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.