Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8911989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:05:21+00:00 2026-06-15T04:05:21+00:00

I have created a plugin that calculates the intersections between grids. The coordinates from

  • 0

I have created a plugin that calculates the intersections between grids. The coordinates from the intersection calculation are using the basepoint position as the origin of the coordinates. I want to convert the coordinates to the Survey Point position. I tried to fetch the coordinates of the base point with this code:

ElementCategoryFilter filter = new ElementCategoryFilter(BuiltInCategory.OST_ProjectBasePoint);

FilteredElementCollector collector = new FilteredElementCollector(doc);
IList<Element> elements = collector.WherePasses(filter).ToElements();

foreach (Element element in elements)
{
    double x = element.get_Parameter(BuiltInParameter.BASEPOINT_EASTWEST_PARAM).AsDouble();
    double y = element.get_Parameter(BuiltInParameter.BASEPOINT_NORTHSOUTH_PARAM).AsDouble();
    double elevation = element.get_Parameter  (BuiltInParameter.BASEPOINT_ELEVATION_PARAM).AsDouble();
}

I wanted to use the basepoint coordinates to adjust the coordinates i found in my intersection calculation to use the Survey Point as a origin. But i can`t figure how to use the values from basepoint to adjust the coordinates. It seems the values in basepoint is not using survey point as origin, but maybe the internal coordinates. Or maybe i misunderstood the values in basepoint. Any pointers to what i can try ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:05:23+00:00Added an answer on June 15, 2026 at 4:05 am

    After a couple of days work i finally found my mistakes and the answer to my question. To anyone having the same problem as i, this is how i transformed the coordinates to the right coordinates:

    • The values i fetch from base point are the offset from the survey point, but my
      mistake is me being a European :p The values i get from the basepoint used feet as unit, while my project had milimeters as unit. So i created a convert function to convert all values i get from revit api(in my case: basepoint values and the grid intersect-function) to the project unit(milimeter). This is a great blog post on the subject http://thebuildingcoder.typepad.com/blog/2011/12/unit-conversion-and-display-string-formatting.html

    • The second thing i had to do is transform the coordinates using the basepoint offset. But the basepoint coordinatesystem may have a rotation. So i had to first rotate the coordinate

      double x = (pos.X * Math.Cos(angle)) - (pos.Y * Math.Sin(angle));
      double y = (pos.X * Math.Sin(angle)) + (pos.Y * Math.Cos(angle));
      

    And then i could transform the coordinate:

    new XYZ(position.X + projectBasePoint.X, newPos.Y + projectBasePoint.Y, 0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using VB6, I have created an Outlook plugin, that has a property page. The
I have created a plugin, that ckecks authorization status and gives access for using
I have created a plugin in that i included one component.. So in that
I have created a simple WordPress plugin that automatically sets my new sites up
I have created a maven project in eclipse using the maven2eclipse plugin. I then
I have tied this jQuery Bar Graph plugin with a function that I created.
I have created a MEF plugin control that I import into my app. Now,
I have created a jQuery elastic plugin. I have the problem that if I
We have created a plugin for webaccess 2008. The problem is that we are
I'm using Joomla 1.5. I have created a custom component that pulls data out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.