Results 1 to 2 of 2

Thread: location

  1. #1
    Member
    Join Date
    2005-08
    Posts
    28
    Login to Give a bone
    0

    Default location

    Hi
    In the samples there is something like this

    Public Function Location(ByRef elem As Revit.Element)
    ' do have a location data?
    Dim loc As Location = elem.Location

    If (loc Is Nothing) Then
    MsgBox("no location data")
    End If
    ' show it. Currently, we only support curve type.
    Dim crv As LocationCurve = loc
    If Not (crv Is Nothing) Then
    Dim startPt As Geometry.XYZ = crv.Curve.StartPoint
    Dim endPt As Geometry.XYZ = crv.Curve.EndPoint
    End If
    End Function

    ‘ from this I can read the startpt.x etc and Endpt.x etc is there a way change the x,y,z values and have them returned to elem.location?
    I thought I had read somewhere that once exposed the location could be changed. I might be wrong because I can not find it again.

    bob v

  2. #2
    I could stop if I wanted to Danny Polkinhorn's Avatar
    Join Date
    2003-12
    Location
    San Francisco, CA
    Posts
    448
    Login to Give a bone
    0

    Default Re: location

    Bob,

    I can't see a way to do this. The Location property is read-only. You can create a new curve with the NewLine method of the application object, but you can't assign this back to the element. At least that's how I'm reading it. It appears that all you can do with the Location is move or rotate it.

Similar Threads

  1. Location of Call Out | Location of Detail
    By baker in forum AutoCAD Sheet Set Manager
    Replies: 1
    Last Post: 2013-07-10, 06:06 PM
  2. Specifying 0,0 location
    By SimonBeau in forum Revit Architecture - General
    Replies: 2
    Last Post: 2012-07-25, 01:39 PM
  3. CUI location(s)
    By sschwartz85916 in forum AutoCAD CUI Menus
    Replies: 2
    Last Post: 2006-04-04, 02:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •