Jump to content
Sign in to follow this  
Guest

Several LibObjs in one macro

Recommended Posts

Guest

I am making a macro which will include one library object which will be repeated several times in the same macro. Using refpoint I can use lat/long to place it in different locations in the macro, but in this case it would be more practical to use x & y coordinates in reference to the macros location. Anyone know the solution on how to to this?Regards Kjell A.team Norwegian Airports

Share this post


Link to post
Share on other sites
Guest

Kjell, I don't understand your question. I never tried to call several calllibobj statement in a macro, but it sounds like it should work. would'nt you just put them together and use a single ref point for the macro as normal? Probably didn't understand the question.Bob B

Share this post


Link to post
Share on other sites
Guest

What I want to do here is to repeat a library object, in different locations in the scenery using the same macro, and position it by using X/Y koordinates in reference to the macro location. I'm making a row of 7 lightposts in a simple approach light system. I already have the lights in place by using the light-command in SCASM. If I now could place my library object in the same x/y coords as my lights, this would be great. I'm just not shure of the code, thats all :)

Share this post


Link to post
Share on other sites
Guest GerrishGray

Hi KjellIf you download my Trees Library from this site, archive name trees_v3.zip, and look at the api's in the SDK section, you'll see examples of how to do what you want. SCASM includes a facility for writing RefPoint() using the notation 'd ', or even 'r ', in place of the Lat/Lon coordinates, meeting your requirements exactly.But if your approach lights are on flat land so that you don't need type 7 RefPoint()'s to adjust to different local altitudes, simple TransformCall()'s might be enough.CheersGerrish

Share this post


Link to post
Share on other sites
Guest

Thanks for the advice, i downloaded it and took a look at it. However i tried the TransformCall first, and it gave me a result i'm satisfied with for the moment. But I will also experiment whith your metod. Thanks for your help!By the way, here is a couple of screenshotshttp://home.online.no/~kjbersas/div/screens/enhk1.jpghttp://home.online.no/~kjbersas/div/screens/enhk2.jpgThe grey light inside the xbar is a white flash.And the real one:http://home.online.no/~kjbersas/div/screens/enhk3.jpg(looks like I should spread my lights a bit.. :) )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...