CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedDraw Line from natural log functio

 Post Reply Post Reply Page  12>
Author
heinsite View Drop Down
Senior Member
Senior Member


Joined: 05.Feb.2009
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 640
Direct Link To This Post Topic: Draw Line from natural log functio
    Posted: 29.Apr.2013 at 09:13
You need to copy and paste it to the command line, not as an OLE object.  What you're doing is essentially automating exactly what you would type it if you had to do it all by hand.  The column of concatenated results would be your inputs.

Dave.
Dave Hein, P.E.
Hawaii District Engineer
Kona International Airport
AutoCAD Certified Professional
Autodesk Expert Elite
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2124
Direct Link To This Post Posted: 29.Apr.2013 at 07:48
You can also use the 2DPLOT utility (free, see Download). After you load it you can start the 2Dplot LISP function with the definition of your math expression - e.g.:
 

(2DPlot (lambda (v) (list v (log v))) 0.5 100 0.5)
 
The parameters are: the function fXY(v), from, to, step
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 29.Apr.2013 at 01:22
When you pasted your selection, was the command line active, with he prompt "First point:"" ?
Back to Top
javik View Drop Down
Newbie
Newbie


Joined: 23.Apr.2013
Location: Australia
Using: AutoCAD2011
Status: Offline
Points: 6
Direct Link To This Post Posted: 27.Apr.2013 at 13:51
Ok, having problems using the pline tool. Type in pline, press paste, input my location point, and it just inserts a text array of the coordinate points??? Please excuse how inexperienced I am with this area of the software.



Edited by javik - 27.Apr.2013 at 13:56
Back to Top
heinsite View Drop Down
Senior Member
Senior Member


Joined: 05.Feb.2009
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 640
Direct Link To This Post Posted: 27.Apr.2013 at 13:43
If you want to use a spline, use the following formula to plot points:

=CONCATENATE("POINT"," ",A1,",",B1)

and then use them to plot a spline.

Dave.
Dave Hein, P.E.
Hawaii District Engineer
Kona International Airport
AutoCAD Certified Professional
Autodesk Expert Elite
Back to Top
javik View Drop Down
Newbie
Newbie


Joined: 23.Apr.2013
Location: Australia
Using: AutoCAD2011
Status: Offline
Points: 6
Direct Link To This Post Posted: 27.Apr.2013 at 13:09
Ok, I'm having a bit of of a problem. When using & or concantate, the cell is just an amalgamation of the two numbers, not seperated by a comma.

*edit: solved

used the following formula: =CONCATENATE(A1,", ",B1)


Edited by javik - 27.Apr.2013 at 13:18
Back to Top
heinsite View Drop Down
Senior Member
Senior Member


Joined: 05.Feb.2009
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 640
Direct Link To This Post Posted: 27.Apr.2013 at 06:11
Originally posted by CarlB CarlB wrote:

"Try also simply plotting the points from Excel, and then fit a spline thru them."
Dave, how would you do this? I don't know of a simpler way than I described.
I described using the "pline" command, but could substitute "spline" as well.


Carl,  it's not as simple... in fact it adds a few steps.  But there is a slight difference in the outcome.  This uses the same general idea you proposed, but instead of concatenating and creating just a set of coordinates I add POINT in front of them.  So each line becomes POINT X,Y.  That column is then pasted into the drawing to yield a set of plotted points.  From there draw a spline thru them.

What I noted was that the fit can be slightly different between this method and the PLINE method.

Dave.
Dave Hein, P.E.
Hawaii District Engineer
Kona International Airport
AutoCAD Certified Professional
Autodesk Expert Elite
Back to Top
javik View Drop Down
Newbie
Newbie


Joined: 23.Apr.2013
Location: Australia
Using: AutoCAD2011
Status: Offline
Points: 6
Direct Link To This Post Posted: 27.Apr.2013 at 02:52
Thanks guys for the tips! Been a great help and will post any results!
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 26.Apr.2013 at 22:11
"Try also simply plotting the points from Excel, and then fit a spline thru them."
 
Dave, how would you do this? I don't know of a simpler way than I described.
I described using the "pline" command, but could substitute "spline" as well.
 
Back to Top
heinsite View Drop Down
Senior Member
Senior Member


Joined: 05.Feb.2009
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 640
Direct Link To This Post Posted: 26.Apr.2013 at 13:41
Originally posted by CarlB CarlB wrote:

I'd say calculate your y coordinates in Excel, for x values/spacing you specify.
In one column, combine your x and y values, separated by a comma, using "&" or "concatenate" function.
Then in AutoCAD, start the "pline" command. When prompted for a point, just paste in a selected range of coordinates.
Can "pedit" with "fit" for a smoother look.
 
 


Try also simply plotting the points from Excel, and then fit a spline thru them.  The concatenate idea works to plot points too which can later be made "invisible" by changing their style.  Compare the results with Carl's method above and keep the one you like best.

Dave.


Edited by heinsite - 26.Apr.2013 at 13:44
Dave Hein, P.E.
Hawaii District Engineer
Kona International Airport
AutoCAD Certified Professional
Autodesk Expert Elite
Back to Top

Related CAD tips:


 Post Reply Post Reply Page  12>
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,223 seconds.