Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use AeccTinSurfaceDefinitionProperties

8 REPLIES 8
Reply
Message 1 of 9
Nathanp
384 Views, 8 Replies

How to use AeccTinSurfaceDefinitionProperties

Can anyone help in using AeccTinSurfaceDefinitionProperties.UseDrawingObjects to allocate selected objects to an existing TIN surface, say oSurf, already created successfully using the AddTinSurface method?
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: Nathanp

Hi,

Yes.

But you will have to clarify what you are trying do do? Readers here are
not clairvoyant.

Are you writing a program?
In Visual Lisp?
In VBA?
Have you already written any code?
Can you post your code so that readers only have to edit/amend rather than
doing the whole job for you?
Which data in particular do you want to add?

--

Laurie Comerford
CADApps
www.cadapps.com.au
wrote in message news:5244187@discussion.autodesk.com...
Can anyone help in using
AeccTinSurfaceDefinitionProperties.UseDrawingObjects to allocate selected
objects to an existing TIN surface, say oSurf, already created successfully
using the AddTinSurface method?
Message 3 of 9
Nathanp
in reply to: Nathanp

Hi Laurie

Thanks for your somewhat sarcastic response to a first time user of these forum!

I am using VBA to try and allocate AutoCAD objects to an AutoCAD surface (thought I said that!). I have created a TIN surface using:

Set oSurf = oDTM.Surfaces.AddTinSurface(oTCD)

where oTCD has been declared using

Set oTCD = New AeccTinCreationData
and the various parameters (layer, description, name etc)

I would now like to allocate a selection set of AutoCAD objects to the surface so that the resulting contours/surfaces etc can be viewed (the selection set of objects will have been selected by the user from the current drawing or from an ADE query).

In the standard Acad interface one uses the Surface-Definitions-Drawing Objects to do this so programmatically, it seems obvious that the AeccTinSurfaceDefinitionProperties object would be the one to use. However, the call

Dim oTSDO As AeccTinSurfaceDefinitionProperties
Set oTSDO = New AeccTinSurfaceDefinitionProperties

gives the error "Invalid use of New keyword".

Hence my question: How to use the AeccTinSurfaceDefinitionProperties object.
Message 4 of 9
ta.group
in reply to: Nathanp

Can you tell me how I can create a new surface in Vlisp?

 

I know I can use something like this:

(vlax-invoke-method obj 'AddTinSurface )

 

But I don't know the exact format of the required (5) entries of the variant. I know it includes

Name,

Description,

Layer,

BaseLayer and

Style (or StyleName).

How do I build this variant in Vlisp?

Message 5 of 9
neilyj666
in reply to: Nathanp

These type of queries may be better posted in the Customization forum??

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 6 of 9
mathewkol
in reply to: Nathanp

What Neil said. And why would you ask a brand new question at the end of a 5 year old post?

And the best answer to your question is to us VB.Net and not VLisp if at all possible.
Matt Kolberg
SolidCAD Professional Services
http://www.solidcad.ca /
Message 7 of 9
ta.group
in reply to: mathewkol

Well, because of several reasons I want to use AutoLisp. And it's still supported bu Autodesk, isn't it?

And I can't find any programmer who have this kind of information of Autolisp in the combination with ActiveX/Civil 3D objects. One of the only forums I think of which could give me an answer is this one. If needed I will make a new topic,if I can't have an answer here.

Message 8 of 9
peterfunkautodesk
in reply to: Nathanp

Just to echo all the other comments:

 

1. LISP is the worst possible API to use if you are trying to customized Civil 3D. It will be slow, it uses the older COM API, there are no samples for it, there is no documentation on it and the LISP API is not tested at all.

2. The new 2012 .NET API for surfaces should be what you are using. This provides a new level of access to the surface model down to the surface line, edge and face level.

 

Cheers,

 

Peter Funk

Autodesk, Inc.



Peter Funk
Autodesk, Inc.

Message 9 of 9
mathewkol
in reply to: Nathanp

A new topic in the C3D customization forum as Neil said would be prudent.
http://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/bd-p/190

I suggested VB.Net (as others in tthat forum will probably too) because LISP is very cumbersome in a lot of cases. You can get it done but it's awkward.
Matt Kolberg
SolidCAD Professional Services
http://www.solidcad.ca /

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report