AutoCAD Civil 3D :: SetSlope Method For BeginAlignment Or EndAlignment?

Sep 27, 2013

I´m trying to modify slopes for BeginAlignment.

This is my code block but it doesn´t anything.

#region peralte inicio alineación y final alineación if (variables_globales.peralteTransversal == false) { //añadimos el peralte para el p.k=0 y para el p.k final si se trata de rectas. if (variables_globales.ListaentitiesAlign[0].SubentityType == AlignmentSubEntityType.Line) { //abrimos la base de datos por si tenemos que escribir. Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument; Database db = doc.Database; Editor ed = doc.Editor; using (DocumentLock docLock = doc.LockDocument()) { using (Transaction trans = db.TransactionManager.StartTransaction()) { Alignment align = trans.GetObject(Id, OpenMode.ForWrite) as Alignment;

[code]....

variables_globales.ListaentitiesAlign is a list of all subentities of Alignment and I check if the first subentity is a line.I use switch but you don´t have use it.
 
Autocad Civil 3D 2014 +SP1
Quad Core Intel i7 3770-cpu 3.40Ghz.
ssd samsung 840 pro 512gb+ssd samsung 840 pro 256 gb+1tb hdd
32gb RAM 1600 Mhz.
nVidia Quadro 2000.
Win 7 Pro 64bit

View 4 Replies


ADVERTISEMENT

AutoCAD Civil 3D :: SSA Rational Method

Sep 20, 2013

SSA rational method. I have to compare results of rational method between SSA and another product. Plain rational method, steady flow, Darcy-Weisbach. Times of concentration (TOC) are manually defined.
 
I played a bit with the units, formulas, IDF curve is defined as pair of values time/intensity. Seems that I achieved something. Results are more or less similar, but there are some differences. After playing with both programs, comparing in Excel, think that I found what is different.
 
So, I have very simple example, of one channel with catchment areas. All areas have the same runoff coefficient – 0.8. Pipe diameters are constant (500). The whole analysis is restricted between 5 and 10 minutes of rain duration (5 min-397.22 l/s/ha and 10 min – 321.53 l/s/ha). I converted IDF to mm/hr. So I have the next example:
 
[picture in attachment]
 
In theory, what I learned about rational method, there is next definition:

Intensity from IDF curve is defined by TOC. TOC is defined by sum of „entrance time“ (which is defined by shape and size of catchment area) and sum of upstream flow times. In my example I defined 5 min for every area.

So, for example for pipe nr. 3, TOC is calculated:
 
TOC_3 = Entrance time for area 3 + Tflow_1 + Tflow_2 + Tflow_3
 
For example:
 
TOC_3 = 5 min + 0.67 + 0.45 + 0.51 = 6.63 min
 
That TOC_3 (6.63 min) is base for reading appropriate value of intensity (I_3) from IDF curve. The flow in pipe 3 is then calculated:
 
Q_3 = I_3 * (A1 * k1 + A2 * k2 + A3 * k3)
 
This is the way how I learned rational method. But results between SSA and another product (which works in a way explained above) are different. Differences increase downstream.
 
After playing with results in Excel, I found out that SSA does not summarize in TOC all flow times upstream. So TOC in SSA is calculated simply by initial entrance time and flow time in specific pipe:
 
TOC_3 = Entrance time for section 3 + T_flow_3
 
So, there is no time added from T_flow of pipes 1 and 2. Seems that it is major difference which leads to final results differences. I tried to understand all options of SSA to find possibility to add upstream flow times, but without success.

View 7 Replies View Related

AutoCAD Civil 3D :: Using Feature Line Method?

Oct 31, 2013

C3D 2012.  I am trying to get the distance from the start of a featrue line to a selected point.  My object is "FLobj" and my Point is PT1.  I am using the method Get2dDistanceAtPoint.  This is the line of code.

(vlax-invoke-method FLObj 'Get2DDistanceAtPoint pt1 'pDistance)

I keep getting "too many actual parameters". 

View 2 Replies View Related

AutoCAD Civil 3D :: Cut Fill Calculation Method

Jan 2, 2013

I'm new in civil 3d road design so my question may be basic.when i prepare a corridor and proceed to get cut and fill it appears as zero.i think i made some mistake at a stage when in section line we decide surfaces..step wise from section line selection to cut/fill calculation also give me the general concept regarding selecting surfaces during cut/fill volume calculation?

View 5 Replies View Related

AutoCAD Civil 3D :: Invoke GetXdata Method On A Label?

Aug 29, 2013

I am trying to see what is in the Xdata of a label object:

(setq labl (car (entsel "
Select label: "))
vlabl (vlax-ename->vla-object labl)
)

GetXData is a method of the selected object I am calling vlabl.

I can't figure out exactly how to get this to work. The method list says GetXdata(3). 

When I try 

(setq xdater (vlax-invoke-method vlabl 'getxdata x y z))

I get an error: error: ActiveX Server returned an error: Parameter not optional

If I try

(setq xdater (vlax-invoke-method vlabl 'getxdata 5 5 5))   ;shouldn't this retrieve the values of the array as double double                                                                                     double?

I get nil. No error, just nil. Does this mean there are no values in the array or am I missing a step that lets me read the array?

I was able to convert from variant to safearray for another routine I wrote yesterday, but that variant came from a get-property, not a method. As you can tell, I have hit a wall.

View 5 Replies View Related

AutoCAD Civil 3D :: Create Polyline From Figure Using BaseCurve Method

Nov 18, 2013

[URL]

You said that there is no need to flatten, but each method I have tried does not produce a polyline with curves.

I tried:

survfig.BaseCurve
survfig.BaseCurve.GetProjectedCurve
survig.BaseCurve.GetOrthoprojectedCurve

If if manually flatten the figure using a dummy suface with the AeccFeatureElevsFromSurf command, the polyline derived from survfig.BaseCurve will then have actual arc segments.

Is there another method or a way to flatten the figure programatically first?

View 8 Replies View Related

AutoCAD Civil 3D :: Overriding Superelevation Using Outside Lane Elevation Method

Oct 23, 2013

In my corridor I have used superelevation.  In a horizontal curve which has a cross slope of 4.5%, I have an intersection.  To allow for a smoother ride through a few lanes in the intersection I want to change the cross slope from 4.5% to 1%.  I was planning on doing this by using a Outside Lane Elevation Method of a Profile.  However, it appears that my super has precedence over my profile.  Is there are way to make this work?

View 2 Replies View Related

AutoCAD Civil 3D :: Pipe Flow Direction Method - By Slope

May 14, 2008

Is it possible to have pipe flow direction method set to "by slope" by default when we creating new pipes?

View 5 Replies View Related

AutoCAD Civil 3D :: Volume Calculation Method - Cut And Fill Are Not Even Close?

Sep 4, 2012

I'm to compare volumes in c3d to Inroads. My volumes are not matching ( cut and fill are not even close). Civil 3D uses  the average end area and InRoads uses 'triangle method' to calculate the total volume. How can I get C3D volumes to match InRoads which is verified correct?

View 5 Replies View Related

AutoCAD Civil 3D :: 2013 - Create A Quick Profile Using Points Method?

Jun 1, 2012

create a quick profile using the Points method?

When I am asked for the Profile Origin the cursor is like a standard Windows Arrow pointer and won't let me select a point for the origin.If I use a polyline for the quick profile all works as expected...

IDSP Premium 2014 (mainly Civil 3D 2014 UKIE SP1 & Infraworks with some limited 3ds Max Design)
Win 7 Pro x64, 256Gb SSD, 300Gb 15,000 rpm HDD
16Gb Ram Intel Xeon CPU E5-1607 0 @ 3.00GHz (4 CPUs), ~3.0GHz
NVIDIA Quadro 4000, Dual 27" Monitor, Dell T3600

View 4 Replies View Related

AutoCAD Civil 3D :: Choose Best Hydrology Method Based On Available Data / Desired Outputs?

Nov 11, 2013

I am in case to model a stormwater network contain ditches with irregular sections, open channels and closed pipes in SSA. I do not have access to IDF curves for the Project area. We got a weather station in site which is giving us continuous data from last 3 months till now. At this stage we just decided to use certain Rainfall intensity (mm/hr).

We got some check points to check the turbidity. What I need to know after analyse is i.e what is the flow at these points at 6:00 pm if we experience the rainfall from 3:00 pm to 4:00 pm with 20 mm/hr rainfall intensity.

So my concerns are with these available basic data, which method is suitable? and as long as we approach more valued data from in site weather station then which method will be the best.   If i want to input time of concentration manually for each subbasin then how can i input TC of pipes or channels in SSA? URL....

where MATT said: "SSA does not calculate the Standard-Step method. The Rational Methods (including modified, and DeKalb) all compute the runoff to the inlet or junction. As soon as runoff enters the system, continuity and momentum calculations take over. SInce you are using Steady State Qin = Qout, so no routing occurs on pipes."

how do i understand the flow in certain points i.e 2 hrs after the rainfall is finished if I can not define TC for pipes or channels?

View 1 Replies View Related

AutoCAD Civil 3D :: Angle-distance Method To Stake Out Horizontal Alignment By Total Station

Aug 3, 2013

Angle-distance method to stake out the horizontal alignment by total station,Assuming that the total station with reflector is the tool that it is intended to lay out the circular curve after being designed then the only way to do so is to construct a table that contains angle-distance values.

 I’m wondering if the C3D can provide this table (attached)

View 9 Replies View Related

AutoCAD VB :: Getobject Method With 2013?

Oct 5, 2012

At some point in my code I used to call AutoCAD 2012 this way:

AcadApp = GetObject(, "AutoCAD.Application.18")

This procedure does for some reason not work in AutpCAD 2013

AcadApp = GetObject(, "AutoCAD.Application.19") produces an error

If if dim AcadApp as object I get a <COM Type> object (which I cannot use or convert to AcadApplication)If I dim AcadApp A AcadApplication i get this exception:

{"Unable to cast COM object of type 'System.__ComObject' to interface type 'Autodesk.AutoCAD.Interop.AcadApplication'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2959C1CC-8577-4EDB-ADDC-6EBBAB147926}' failed due to the following error: En sådan grænseflade understøttes ikke (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."} System.Exception

What changed from 2012 to 2013?

View 9 Replies View Related

AutoCAD Inventor :: Add Method Error

Jul 7, 2006

i have a problem in Inventor 10 with the add method, which i didn't have in inventor 8, it's very puzzling. I open an assembly, add some parts (this goes without problems) then i open another assembly, change some stuff,close it again, so i'm back in the first assy and then the next add method fails.

Public Sub AddOccurrence()
' open assy
Set oAssy = ThisApplication.Documents.Open("C:TempAssy.iam", True)
' Set a reference to the assembly component definition.
Dim oAsmCompDef As AssemblyComponentDefinition
Set oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition
[code]....

View 6 Replies View Related

AutoCAD .NET :: How To Define Some ObjectARX Method

Jul 30, 2013

I need functions:

acdbEntGet
acdbEntMod
acdbEntUpd

of course, usingP/Invoke.

View 1 Replies View Related

AutoCAD Inventor :: Trying To Use GetPromptTextValues Method

Dec 31, 2012

I am trying to display the Tags and Values of an inserted AutoCAD block in an Inventor 2013 dwg. I am using .Net studio10.I can list the properties of the block object but cannot get the "GetPromptTextValues" method to work. Problem is at the bottom of the code listed below.

' Connect to a running instance of Inventor.Dim invApp As Inventor.Application' Check to see if a drawing is active invApp = System. Runtime. InteropServices.Marshal.GetActiveObject("Inventor.Application") If invApp.ActiveDocument.DocumentType <> Inventor. DocumentTypeEnum. kDrawingDocumentObject Then MsgBox("Need to have a drawing document active")Return End If ' Create ref to active drawing document Dim oDrawingDoc As Inventor.DrawingDocumentoDrawingDoc = invApp.ActiveDocument.
[code]....

View 9 Replies View Related

AutoCad 2D :: How To Change Input Method

Jun 4, 2012

dynamic input.jpg

A while ago my dynamic input method went from aligned to some sort of midpoint angled method. Not even really sure. What this is / how to change the input method?

View 5 Replies View Related

AutoCAD Inventor :: Different Tolerance Method

Apr 30, 2009

While looking at the different tolerance methods, I see a couple called MIN and MAX, which just tack these words to the end of the dimension. Is there a way to customize the tolerance methods to add suffixes or prefixes to dimensions, such as TYP or 2 PLCS or something like that, so that I can minimize my detailing time.

View 5 Replies View Related

AutoCAD Architecture :: Method Not Found Error

Aug 10, 2012

User received this error after trying to open a 2nd drawing after receiving a fatal error unhandled excpection e0434352h 7c812afbh. 

New error messag is: Method not found: "Int64 Autodesk.AutoCAD.DatabaseServices.ObjectId.get_OldId()'

View 2 Replies View Related

AutoCAD .NET :: Getting Fatal Error In Explode Method

Nov 24, 2013

I am getting Fatal error at the explode method in the following highlighed (red) code.

public class ExplodeDynamicBlocks
{
[CommandMethod("EDB")]

[Code].....

Also, if possible, how to combine two objectidcollection into one?

View 9 Replies View Related

AutoCAD .NET :: Best Method For Iterating A Type From Modelspace?

Aug 16, 2012

performance differences between:

1) Using a selction filter to get the objectIDs of a particular type, then iterating them, or

2) Iterating all modelspace objects, checking ObjectID.ObjectClass.Name for the desired type.

View 1 Replies View Related

AutoCAD Inventor :: Any Way / Method Of Doing Overall Project Properties

Jul 14, 2012

Basically a project could contain one idw file, or it could contain 20 idw files or 100 or more.

Our titleblock has about 12 entries of project information that will be consistent on all sheets whether that's one sheet or a 1000 sheets.

Is there a way to link an excel file to each idw? (I'm pretty sure not : ) ) or some way to have a central repositor for those properties so that if something changes, we don't have to go back and change each idw?

I have seen the drawing transfer management wizard, but it seems like overkill to a situation that has to have existed a long time - that being needing customer info on a titleblock. Seems like it'd be the perfect think for linking an excell file or having actual properties in the project file.

View 8 Replies View Related

AutoCAD .NET :: Polyline Class Reset Method?

Aug 4, 2011

I used it to clear out the old vertex information, and then add new vertex points.All works on the screen until you use the undo command then all the vertex points are lost. Just created new polylines and deleted the old to fix it. Not ideal as I was storing the ObjectId’s in Xrecords, which now have to be updated with the new id’s

View 3 Replies View Related

AutoCAD Inventor :: Automated Skeletal Method

Apr 5, 2013

I would like to introduce a macro to handle the skeletal method.

[URL].........

View 1 Replies View Related

AutoCAD .NET :: Change Color Method Of An Entity?

May 11, 2006

For AutoCAD 2006, I have an entity that I am changing properties of, but I cannot figure out how to set the colormethod to "By Layer." I am sure that I am missing something, but I am at my wit's end.

View 1 Replies View Related

AutoCAD Inventor :: Use ExtendFeature Method Of PartFeature

May 22, 2013

I need to get familiar with the Inventor API for my thesis.Currently, I need to extend the face of a part.I started with selecting the face edge by

Dim ActiveDocument As Inventor.Document
Dim spline As Object
Set spline = ThisApplication.CommandManager.Pick(kPartEdgeFilter, "please choose the face edge!")

This is working fine.I know that the next step would be to use the ExtendFeature method of PartFeature, but I do not know exactly how to do this. Do I need to get the face as parent of the edge? How can I invoke the extesion then?

View 2 Replies View Related

AutoCad 2D :: Preferred Method Of Starting A New Drawing?

Sep 9, 2013

1. start a new drawing from a template

2. start a new drawing from scratch and insert a titleblock

3. the hardest way to do it start from scratch and draw everything including the titleblock

View 9 Replies View Related

AutoCad :: Command For Creating Circle From Tan Method

Sep 1, 2012

what is the command shortcut for creating circle from tan tan tan method????

View 7 Replies View Related

AutoCad :: What Is Method For Drawing Circle On Z Axis

Jun 15, 2011

What is the method for drawing a circle on the z axis? Ex: I have a cube and I want to make some circles on the vertical sides.

View 7 Replies View Related

AutoCAD .NET :: Redrawing Screen During Execution Of Command Method

Dec 19, 2012

I would like to be able to have the screen refresh periodically to show the new objects I have added as a command method proceeds to execute. I am hoping to be able to achieve a kind of simple animation by doing this, and also to show progress while a computationally intensive operation is under way. Is there a way that I can do this? 

I have tried using AcadApp.DocumentManager.MdiActiveDocument..Editor.Regen() and also .Editor.UpdateScreen(), but it only seems to work once and not multiple times. Do I have to commit the transaction and then .

View 8 Replies View Related

AutoCAD Inventor :: Method For Seeing If Column Is Present In BOM View?

Jun 3, 2013

I've seen things about getting the information from the parts in the BOM list, but not about seeing what is present in the structure itself

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved