Finding a drug that works can make all the difference. One of the methylphenidate variants is a good one to try.
I have no trouble getting my son to do his homework (knock on wood), but I remember all the terrible times when my mother had to practically glue me to a chair to get homework done, even if she got me still it didn't mean I could focus. I have ADD and I wasn't diagnosed until high school bc I want hyperactive. Maybe try doing it at the same time every night, maybe if it is proving difficult while the house is busy in the evening try after bath time. She may be more relaxed then, and maybe have a special treat she loves ready for when she is done. Like a couple of Oreos or something, this will help avoid her dragging homework out just to stay up later. I know I could have benefitted from my mom getting creative, but instead she tried to force homework at the loudest busiest time while she cooked dinner and my brother watched tv.
...sometimes it's a carrot; sometimes a stick. Sometimes I have to make it attention-grabbing and creative. Is she on meds for ADD?
I've actually just submitted a similar answer to someone enquiring whether OT can help with "staying on task" but I think the principles are similar. We've had an ASD specialist psychologist several times who provided a few simple strategies that have helped my 9 yo HFA with poor concentration and reduced short term memory a lot. One is a laminated card with 6 circles or boxes on it. Tom gets a tick in one every time I see him REALLY concentrating or paying attention to whatever he is doing in his homework. Once he has all 6 ticks, he is allowed a short turn with a game - you need game activities that only take about 2 -3 mins mins. The other KEY thing is to have a sheet of paper headed "Tom's Homework". Look at what the school wants him / her to do, decide whether it is appropriate to do it all, then put the things down as 4 - 5 activities with boxes for your child to tick as s/he completes each one. It is important NOT to have too much on the page or it is overwhelming. Each task should be fairly easy and short enough for the child to complete readily, e.g. 5 spelling words; write 3 sentences about...... At the bottom of the page should be a reward activity e.g. 5 minutes Mathletics or other computer activity. Tom made really good progress with these methods prior to CHristmas. Now the battle will be to get that focus back when school resumes here in Australia in two weeks!
I have an 8-year old daughter with Asperger's and ADHD. She attends a public school, and we also use the before/after-school services of a trusted daycare. I pick her up from school at 5:00pm. From the time she is picked up from school at 3:30pm, her daycare requires her to at least attempt to work on her homework at the daycare. If she needs assistance, they are always more than willing to help her one-on-one. When I pick her up and bring her home, the first thing she has to do is use the bathroom. Then change out of her school uniform into play clothes. Then feed the dogs. And finally, do her homework. I usually help her if she gets hung up. She responds well to one-on-one assistance. If she doesn't have homework, then she quietly reads a book. Either way, she knows that she has to do something homework-like. Once her homework is finished and I've checked it, then she can either watch a Disney movie, listen to Radio Disney in her room, or play on her LeapPad. I make it clear that these are privileges that can only be enjoyed once her responsibilities are taken care of.